How to Create a bouncy Animated Sign up page

How to Create a bouncy Animated Sign up page

With the Use of Only #HTML, #CSS and #JavaScript. Inspired by Zander WhiteHurst

ยท

3 min read

Table of contents

No heading

No headings in the article.

Hello World! ๐Ÿ‘‹

This is my first blog and today we will be learning how to Create a bouncy Animated Sign up page.

I was inspired by Zander Whitehurst on twitter (You all might know him "The Supafast Figma Guy" ๐Ÿ˜‚) and i will show you how it is done with HTML, CSS and Vanilla JavaScript.

To begin with, we create our separate HTML, CSS and JavaScript file on a new folder on your code editor. I use Visual studio code as my code Editor

  1. HTML

HTML script.JPG

You first create a separate tags under your body tag for the Bouncy Effect and the Sign up page proper. The first tag which is the Main tag contains the bouncy effect while the second tag, the section tag contains the sign up page.

As you might have noticed, the main tag contains different "-dot" classes which are not arranged numerically correct on the code Editor. This is because the numbering is for the appearance of each dot as appeared on your screen as at the time of the effect.

  1. CSS and JavaScript

Will be talking on only the animation effect.

a) First Animation

intersection observers.JPG

JS

first effect CSS.JPG

CSS

The first Animation is that which contains the first appearing dot. This is the major bouncy effect that you see when you load the page. It is done with the intersection Observer javaScript function and the Keyframes Transform TranslateY-axis CSS property.

The intersection Observers are controlled by a group of class selector in CSS as shown below.

observer css.JPG

After this, the first dot disappears and the second dot takes the place of the first dot last position.

All the disappearing effects in this article are done with javaScript setInterval functions as shown below.

timeout function.JPG

b) Second Animation

This is where the second animation comes in.

second effect.JPG

The increase of size of the second dot. It then disappears.

c) Third Animation

The animation is the appearance of the third dot at the same size and at the same position as the second dot but at a different angle of its linear gradient.

It disappears and the fourth dot appears where the third dot left off at the same linear gradient but then changes to a different angle and scales down to Zero for the appearance of the fifth and final dot

d) Final Animation

fifth effect.JPG

When the fifth dot appears and disappears, the Section tag transit in from a low scale to a higher scale and opacity. The coming up effect of the sign-up box is done by the Intersection observer function as shown above.

After it appears, a little keyframe TranslateY-axis animation is done for the little vertical tilt at the end of the animation.

This is the end of the Article. Ka แป dแป‹ ๐Ÿคฃ.

Code Source: codepen.io/Vizion_Snilloc_jr/pen/eYMGayP

ย