animated name

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

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

Technologies

  • HTML
  • CSS
  • JavaScript
    
<html>

<head>
  <script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script>
  <script type="text/javascript" src="https://s3.amazonaws.com/codecademy-content/courses/hour-of-code/js/alphabet.js"></script>
</head>

<body>
  <canvas id="myCanvas"></canvas>
  <script type="text/javascript" src="https://s3.amazonaws.com/codecademy-content/courses/hour-of-code/js/bubbles.js"></script>
  <script type="text/javascript" src="main.js"></script>
</body>

</html>

/*Downloaded from https://www.codeseek.co/dalek21397/animated-name-dYPKEL */
    body
{background-color:black;}


/*Downloaded from https://www.codeseek.co/dalek21397/animated-name-dYPKEL */
    var red = [1,170,30];
var orange = [35, 60, 50];
var green = [150, 150, 20];
var blue = [196, 77, 55];
var purple = [310, 50, 50];

var myName = "Brandy";
var letterColors = [red, orange, green, blue, purple];
if (10 > 3)
    {bubbleShape = 'circle'}
else
    {bubbleShape = 'square'};


drawName(myName, letterColors);
bounceBubbles();

Comments