animate.css icon indicating copy to clipboard operation
animate.css copied to clipboard

delay classes - feature/addition

Open james2doyle opened this issue 14 years ago • 5 comments

This is more of a feature that I found myself adding.

.animated .delay200 {
    animation-delay: 0.2s;
}

I wanted this because I am doing a lot of animations on page load and I didn't want to do them in javascript.

I also didn't want to do:

.animated {
    animation-delay: 0.2s
}

Because I want each animation to have a sequential order. I was figuring there would be some default ones. Anyone else see this as useful? Or do you think it is too specific for what I was doing?

james2doyle avatar Dec 05 '12 03:12 james2doyle

It's a decent idea... I was thinking about doing this for one of our recent projects (animating 4 different things at different intervals).

However I think the specific timing of each project's requirements might be too specific to include in animate.css maybe?

On the other hand maybe you only really need intervals under 1 second, so maybe you could do .delay100, .delay200, .delay300, etc and cover most eventualities.

Cool idea!

juliotaylor avatar Dec 05 '12 09:12 juliotaylor

like the idea. Common and useful "default time steps" might come in handy.

pepperstreet avatar Dec 05 '12 12:12 pepperstreet

You can see it in action on my new business home page. I created a few ones like 250 and 800. Check it out.

james2doyle avatar Dec 05 '12 14:12 james2doyle

Nice idea!

On 5 December 2012 08:01, James Doyle [email protected] wrote:

few ones like 2

argentounce avatar Dec 06 '12 03:12 argentounce

This is too specific for the project’s aims. As @juliotaylor, projects will have different requirements, and delays are a fairly easy addition for users to make themselves. Closing.

daneden avatar Jan 07 '13 16:01 daneden