forked from Botanical/BotanJS
Added transition decade
This commit is contained in:
@@ -234,13 +234,15 @@
|
||||
|
||||
Parallax.attach( window, wsupp, 0.5 );
|
||||
|
||||
var cp = 0;
|
||||
var bWrapper = Dand.id( "begin-wrapper" );
|
||||
Cycle.perma(
|
||||
"MainBackground"
|
||||
, function()
|
||||
{
|
||||
var p = wsupp.scrollTop / ( wsupp.scrollHeight - wsupp.clientHeight );
|
||||
bWrapper.style.backgroundPosition = "50% " + ( p * 100 ) + "%";
|
||||
cp = 0.75 * cp + 0.25 * p;
|
||||
bWrapper.style.backgroundPosition = "50% " + cp * 100 + "%";
|
||||
}
|
||||
, 15
|
||||
);
|
||||
|
Reference in New Issue
Block a user