CSS animation swaying curtains -
i have customer curtains opening on entrance page, can not flash animation, , animated gif large in file size. created set of curtains open css animation on mouseover. basic animation here http://www.nightwingsgraphics.com/curtains/curtainstest.html
however, since more doors (too stiff) when open, added slight swaying motion here http://www.nightwingsgraphics.com/curtains/swaytest.html better, still stiff, , i'm lost or how add kind of "warping" (or morphing) effect make them more natural.
any appreciated.
ps: created jsfiddle both versions, it's not allowing me post more 2 links here :(
you can use skew()
transformation this
#axis:hover .move-right{ transform: translate(215px,0) scalex(0.2) skew(-15deg, 5deg); } #axis:hover .move-left{ transform: translate(-215px,0) scalex(0.2) skew(15deg, -5deg); }
also see chenge translate
value because came out of container when applying skew()
function
play cubic-bezier
function improve transition
.object { transition: 3s cubic-bezier(0.42,0.1,0.44,0.95); }
i recommend page play http://cubic-bezier.com/
also @ answer question here: how add physics css animations?
i hope @ least guide you.
pd:i omitted vendor-prefixed
shorten code
Comments
Post a Comment