Web Development, CSS.
scale(.8)') $('#screen-z7').css('transform','translate3d(' + z7 + 'px,0,0) scale(.8)') }) Explaination 1. You can bind an ‘scroll’ event on <header> to change your ‘sl’ value defined by ‘$(‘header’).scrollLeft()’ 2. Use ‘sl’ to adjust the position of layers ‘translateY(sl)’ 3. Why adding ‘scale()’?