Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="jquery-3.4.1.min.js"></script>
- <script type = "text/javascript">
- const $ = window.$;
- window.$ = $;
- $(document).on('scroll',function(){
- $('p').css("left" , Math.max(500 - 0.35 * window.ScrollY) + "px" )
- })
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement