I have the following use-case:
- a couple of content-elements with images in between
- the images should always be displayed as a whole (relate to the
contain
-value for thebackground-size
-property) - this behaviour should be the same on all viewports, resulting in the image to scale in size (but always being fully visible)
- when scrolling, every image is supposed to scroll to the top normally
- once an image hits the top, a parallax-effect should kick in
You can see my implementation here: http://codepen.io/AvantiC/pen/BpReza
It works quite well in Chrome, the scrolling and parallax seems really smooth. But when I test the page in Firefox or Safari, the images behave "jumpy"/"jerky" (not sure whats the right word here ;) ).
I am not sure though wether it's a problem with Firefox/Safari or wether my implementation is faulty and Chrome is just somehow making up for it internally.
Maybe someone can point me in the right direction. :)
Greetings, AvantiC