Why? | Technologies | What can I learn? | How to use | License
It is nice to build things with Pure CSS and Vanilla JavaScript to better appreciate functionalities provided by frameworks, libraries and preprocessors such as ReactJS, Angular, Vue.js, Bootstrap, Tailwind and SASS.
This project was developed with the following technologies:
-
Looking at this code you can learn how to make an HTML element chase your cursor on mouse move using Vanilla JavaScript.
- CodePen example: Chasing Ballon.
-
You can also learn how to create a throttle function (used to limit the rate at which events are triggered) to improve performance when using onmousemove or onscroll events.
- CodePen example: Chasing Ballon.
-
Creative use of ::before and ::after pseudo-elements, gradients and
filter: blur()
to make the rocket thrusters glow. -
Cool animation created by using a combination of ::before and ::after pseudo-elements, :active state and keyframes.
Check out the Front-end Mastery repository it contains references to level up with CSS and JavaScript tricks for front-end developers.
Access the deployed website at GitHub Pages.
Or clone and run this application on your own machine. You'll need Git installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/stevescruz/flying_rocket.git
# Go into the repository
$ cd flying_rocket
# Run the app
Run index.html with your web browser
This project is under the MIT license.