vertexofvortex

logo

Jun 30th, 2020
14,637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. logoAnimation();
  2. function logoAnimation() {
  3.     var img = document.querySelector('a.logo img'),
  4.         logo = img.parentElement;
  5.    
  6.     var layerText = document.createElement('img');
  7.         layerText.classList.add('layer', 'text');
  8.         layerText.src = 'https://raw.githubusercontent.com/vertexofvortex/customcorp/master/images/animatedlogo/text.png';
  9.         layerText.style.cssText = 'height: unset; width: unset';
  10.     var layerSteeve = document.createElement('img');
  11.         layerSteeve.classList.add('layer', 'steeve');
  12.         layerSteeve.src = 'https://raw.githubusercontent.com/vertexofvortex/customcorp/master/images/animatedlogo/steeve.png';
  13.         layerSteeve.style.cssText = 'height: unset; width: unset';
  14.     var layerAlex = document.createElement('img');
  15.         layerAlex.classList.add('layer', 'alex');
  16.         layerAlex.src = 'https://raw.githubusercontent.com/vertexofvortex/customcorp/master/images/animatedlogo/alex.png';
  17.         layerAlex.style.cssText = 'height: unset; width: unset';
  18.    
  19.     img.remove();
  20.     logo.appendChild(layerText);
  21.     logo.appendChild(layerSteeve);
  22.     logo.appendChild(layerAlex);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment