Hello there guys
I have javascript code for parallex effect its working great but what I need is to transform this code to jquery so my site contain only jquery codes not mixed.
<script>
var topDiv = document.getElementById("topDiv");
var speed = 1.5;
window.onscroll = function()
{
var yOffset = window.pageYOffset;
topDiv.style.backgroundPosition = "0px "+ (yOffset / speed) + "px";
}
</script>