Tutorial: Easy Way To Animate...

User 434929 Photo


Ambassador
938 posts

Easy Way To Animate Elements / Objects in our projects.

http://www.youtube.com/watch?v=XDrh_KMQ14w

Download animate.css from following website and place it in your css folder of your projects.
http://daneden.github.io/animate.css/

Place following code between the opening <head> and closing </head> tag of your HTML document
<link rel="stylesheet" href="css/animate.css">


Example:
<head>
<link rel="stylesheet" href="css/animate.css">
</head>

Guys at coffeecup are awesometacular.
User 434929 Photo


Ambassador
938 posts

For more info please read at following link:
https://github.com/daneden/animate.css

Animate.css
animate.css is a bunch of cool, fun, and cross-browser animations for you to use in your projects. Great for emphasis, home pages, sliders, and general just-add-water-awesomeness.
Usage

To use animate.css in your website, simply drop the style-sheet into your document's <head>, and add the class animated to an element, along with any of the animation names. That's it! You've got a CSS animated element. Super!

<head>
<link rel="stylesheet" href="animate.min.css">
</head>

You can do a whole bunch of other stuff with animate.css when you combine it with jQuery or add your own CSS rules. Dynamically add animations using jQuery with ease:

$('#yourElement').addClass('animated bounceOutLeft');

You can also detect when an animation ends:

$('#yourElement').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', doSomething);

Note: jQuery#one is used when you want to execute the event handler at most once. More information here.http://api.jquery.com/one/

You can change the duration of your animations, add a delay or change the number of times that it plays:

#yourElement {
-vendor-animation-duration: 3s;
-vendor-animation-delay: 2s;
-vendor-animation-iteration-count: infinite;
}

Note: be sure to replace "vendor" in the CSS with the applicable vendor prefixes (webkit, moz, etc)
Guys at coffeecup are awesometacular.
User 91713 Photo


Registered User
83 posts

Awesome. Thanks for sharing.
The perfection isn't reached in one pass.
User 187934 Photo


Senior Advisor
20,188 posts

JQuery rocks! The amount of plugins for it is mind blowing and as you have shown easy to implement.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 434929 Photo


Ambassador
938 posts

If we just could able to add /enter multi classes into RLM as the same way you see I am adding into HTML Editor then we could rock all the way and do all these within RLM itself. :)
Guys at coffeecup are awesometacular.
User 38401 Photo


Senior Advisor
10,951 posts

Mansour ... wrote:
If we just could able to add /enter multi classes into RLM as the same way you see I am adding into HTML Editor then we could rock all the way and do all these within RLM itself. :)

I second, third and so on that one. I would suggest you go add that to the suggestions thread because a few of us have asked for that a while ago and I am not sure if they think it's necessary or maybe just will be added later. They said that's something fir RSD not RLM! I don't know about you, but I don't think so, I think it should be in RLM too. :)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.