I’ve made a little code snippet to handle the window.onload event the right way, and thanks to some feedback, people said that it would be even better if it could handle the DOMContentLoaded event.
In our days, sometimes it’s easier to have a short link for your page, that you can share with your friends.
I’ve been developing a plugin called SocialShare, the objective is to create sharing buttons to all the Social Networks, but i don’t want to use any framework to achieve this goal. And, because of that, i’ve encountered a small step back. The window.onload doesn’t really work has i intended. So, i’ve made my own onload event handler.
The saga continues.
In this second tutorial, i’ll show how to create the Parallax effect by scrolling the window.
This type of Parallax effect has a small problem, though it is quite simple to implement, if we have a website with many elements under a Parallax effect, it can be a little slow and heavy.