jQuery Test

In this example below you will see how to do a jQuery Test with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by -_-Nina-_-, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright -_-Nina-_- ©

Technologies

  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>jQuery Test</title>
  
  
  
  
  
</head>

<body>

  <body>
  
  <h1 id="heading">
    <br><br>
    Hey there
  </h1>
  
  <script src="https://code.jquery.com/jquery-2.1.0.js">
  </script>
  
</body>
  
  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/-_-Nina-_-/jquery-test-OOYWZr */
var leftOffset = 0;
var moveHeading = function() {
  $("#heading").offset ({left: leftOffset});
  leftOffset ++;
  if (leftOffset > 720) {
    leftOffset = 0;
  }
};

setInterval(moveHeading, 10);

Comments