Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.onload = function() {
- display_logo();
- };
- function display_logo() {
- var element = document.createElement("img");
- element.setAttribute('src', 'logo.png');
- element.classList.add("logo");
- $("#page").append(element);
- $('.logo').on('load', function() {
- //animation
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement