simpleParallax.js icon indicating copy to clipboard operation
simpleParallax.js copied to clipboard

Tips if i dont want to scale but still have the parallax speed

Open ohabash opened this issue 3 years ago • 1 comments

Wondering if there is a way to control the zoom and translate separately? I want to translate faster without having to zoom

ohabash avatar Mar 22 '22 15:03 ohabash

Just stubled upon your question and after looking at the code I found an option: overflow: true This skips adding the 'scale' attribute and only adds the translate. You'll have to add 'scale' with css yourself.

Example: new simpleParallax(images, { scale: 1.4, overflow: true });

esion-net avatar Jul 27 '22 23:07 esion-net

There is no way to control scale (zoom) and translation separately. simpleParallax was built based on the relationship between these two.

geosigno avatar Sep 02 '22 09:09 geosigno