A Pen by Anders Lund

Thumbnail
This awesome code was written by anderslund007, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright anderslund007 ©
  • HTML
  • CSS
  • JavaScript
    <div class="pClass">
  <h4>siiiiir</h4>
  <h3>S*W*A*G</h3>
  <h3>S*W*A*G</h3>
  <h4>halla</h4>
</div>

<div class="elements">
</div>

/*Downloaded from https://www.codeseek.co/anderslund007/a-pen-by-anders-lund-ZedqKq */
    


/*Downloaded from https://www.codeseek.co/anderslund007/a-pen-by-anders-lund-ZedqKq */
    $('.pClass *').siblings('h4').css({
  'color': 'red',
});

var para = document.createElement("p");
var node = document.createTextNode("This is new.");
para.appendChild(node);

var element = document.getElementById("div1");
element.appendChild(para);


Comments