[JS]スクロールするのが楽しくなる!多彩なパララックスのエフェクトを簡単に実装できるオープンソースのスクリプト -Jarallax | コリス http://t.co/8bjA3zKD
October 17, 2012
![[JS]スクロールするのが楽しくなる!多彩なパララックスのエフェクトを簡単に実装できるオープンソースのスクリプト -Jarallax | コリス](https://image.over-blog.com/VQBZ4XUX4vSQaLLo8GdxmYlHTD4=/170x170/smart/filters:no_upscale()/http%3A%2F%2Fcoliss.com%2Fwp-content%2Fuploads-2012-2d%2F2012101702-03.png)
[JS]スクロールするのが楽しくなる!多彩なパララックスのエフェクトを簡単に実装できるオープンソースのスクリプト -Jarallax | コリス
var jarallax init = function() { jarallax = new Jarallax(new ControllerScroll(true)); var currentProgress = 0; var progressSteps = 1 / 5; jarallax.setDefault('.container',{opacity:0, display:'none'}) jarallax.addAnimation('.logo',[{progress:'0', opacity:'1', backgroundPositionY:'50%'}, {progress:'10', opacity:'0', backgroundPositionY:'0%'}, {progress:'100%', opacity:'0', backgroundPositionY:'0%'}]); var animation = jarallax.addAnimation('#slide1',[{progress:'0', display:'block', opacity:'0', top:'100%'}, {progress:'10', display:'block', opacity:'1', top:'20%'}, {progress:'20', display:'block', opacity:'0', top:'0%'}]); jarallax.cloneAnimation('#slide2',{progress:'+10'}, animation); jarallax.cloneAnimation('#slide3',{progress:'+20'}, animation); jarallax.cloneAnimation('#slide4',{progress:'+30'}, animation); }
http://coliss.com/articles/build-websites/operation/javascript/jquery-plugin-jarallax.html
/image%2F0125000%2F201304%2Fob_47895faddaed68a2ed7ebf13bab273a7_scraplex-circle-white.png)
