At first i was talking about fades when i’ve added animate.css and figured that there is no need to keep animations in js
as you can kick animations as is by focus on a specific section of the page
Everytime i hit navbar link animations were happing after landing on an element of the page.
That’s why i’m that confused.
After some js changes none of that still working…
p.S. but don’t even worry about it .. there is no place to stop =)
i can’t bugging yoy everytime s*** happens .. tired of that
plus i think i’m better end up my carrier at this point.
Can’t do that no more.
It’s just taking too much time to recreate imaginary things in the code.
Sorry that i wasn’t clear on that ..))
i’ve added link to animates.css to head
and drop an animation (shake) to last two icons
just as an example
it was firing up on focus but now it isn’t (i still don’t get it how but that was very handy with animate.css
exactly what i was aiming with animations in this particular situation .. click a navbar link = animation happens on focus)
plus i tried to recreate that with my own animation but they just started after page is load and that’s it.
Why not use this? 100% HTML & CSS.
Only thing is, it relies on div’s all being 100% height of page. That’s how it calculates the transformations.
I was thinking about how to add different animations from animate. css to different elements inside targeted sections .. say for example those last two icons in the end .. how to set different animations for each icon?
Plus animations right now trigered only on click when you just scroll to it
it seems like have no effect (only opacity)
Is it possible to trigger all animations by scroll too?
here’s a sample
P.S. You know like modern pages have that scroll effect when you scroll down elements appears with different animation.
If only you’d posted this question a month ago… I did exactly that here http://fofwebdesign.co.uk/template/_writing/a-mince-pie-too-many/
elementFromTop() function watches for when a section (a candy cane bar) hits the top of the viewport. When that happens, it adds 2 classes to the element being animated; an
animated class, and an animation-name class, which are taken from the animate.css library (a good portion of them anyway – some animations are custom, or from magic.css, but I continued using the same logic for convenience).
You must be logged in to reply to this topic.