I'm working on a website geared at children and wanted to add subtle movement to one or two of the elements on the page.
I planned to use the transition property and a super subtle rotation/margin change to the element to give it the soft effect that its swinging in a breeze.
The problem I've run into is that I only know how to apply transition effects to elements that are interacted with - :hover :focus etc.
Is there a way to get this effect going constantly whether someone mouses over it or not?
Thanks in advance!
I planned to use the transition property and a super subtle rotation/margin change to the element to give it the soft effect that its swinging in a breeze.
The problem I've run into is that I only know how to apply transition effects to elements that are interacted with - :hover :focus etc.
Is there a way to get this effect going constantly whether someone mouses over it or not?
Thanks in advance!
Comment