Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Publication Station
Search
Editing
CSS animations
(section)
From Publication Station
Namespaces
Page
Discussion
More
More
Page actions
Read
Edit
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==animation tricks== ===animation-play-state=== You can set the animation to play or pause when you hover/click in the element animation-play-state: playing; animation-play-state: paused; https://codepen.io/PublicationStation/pen/MzrJXR === animation-delay=== <code>animation-delay</code> sets when an animation starts. It can start when * page is loaded: <code>0s</code> * N seconds after the page is loaded: <code>positive number of seconds</code> * N seconds before the page is loaded, meaning that it will already be halfway through it: <code>negative number of seconds</code> https://codepen.io/PublicationStation/pen/BGRPry === animation: transform-origin=== figuring out what is the center point of an element, so that we can rotate/skew/scale it, from it center point, can be a bit tricky. A simple solution is to * add in the vector drawing a circle to the center of the element * in the SVG code see the <code>cx</code> and <code>cy</code> * those points will be the center of the element * than we can simply delete the circle for our svg code. https://codepen.io/PublicationStation/pen/MzmPEg ===animation-timing-function=== <code>animation-timing-function</code> sets how an animation progresses through the duration of each cycle. Possible values: * linear: same speed from start to end * ease-in: slow at the beginning, fast/abrupt at the end * ease-out: fast/abrupt at the beginning, slow at the end * ease-in-out: slow at beginning and end * steps: makes a staccato motion, between the keyframes in N number of steps: <code>steps(5)</code>
Summary:
Please note that all contributions to Publication Station are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Publication Station:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Main navigation
Main page
Printmaking Studio
Print Studio
Dig. Publishing Studio
Namespaces
Grafiwiki
Random Page
Log in
Wiki tools
Wiki tools
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs