Open CodeHunger opened 12 years ago
jarallax.addAnimation('.myClass',[{progress:'0%', style:'.style1'}, {progress:'100%', style:'.style2'}])
This creates a Jarallax animation. Instead of setting styles in Javascript this new implementation makes it possible to link directly to CSS.
jarallax.addAnimation('.myClass',['.style1', '.style2'])
Setting the progress is optional. If no progress is set then Jarallax sets the first style to 0% and the last style to 100%
Hello! does this work with version jarallax-0.2.3b.min.js?
This creates a Jarallax animation. Instead of setting styles in Javascript this new implementation makes it possible to link directly to CSS.
Setting the progress is optional. If no progress is set then Jarallax sets the first style to 0% and the last style to 100%