Simple Increment and Decrement Counter | Vanilla JavaScript Project Explained

Опубликовано: 09 Октябрь 2024
на канале: Angela Design
6,662
187

New to CSS Grid? Watch the full Crash Course here:    • CSS Grid Crash Course | Beginners Tut...  

In this video I go over how to create this simple counter using HTML, CSS and Vanilla JavaScript. I show you the full front end coding tutorial, where I create the structure of the elements in HTML, then write all of the styling and effects with CSS and add functionality with JavaScript. I use Flexbox for the layout, hover effects and active states to improve the interaction design and a function to change the styling depending on the value of the number.

Enjoying this tutorial? Subscribe to stay up to date with my latest content:    / @angeladesign737  
Codepen: https://codepen.io/angeladelise/pen/J...

In this video I show you:
0:00 - Intro
0:33 - Starting Code
1:03 - HTML Code
2:05 - CSS Code
5:22 - Javascript Code
10:16 - Change Color Style Function
14:02 - Review

Want to improve designer to development handoff? View my Sketch to Zeplin workflow here: https://www.youtube.com/watch?v=D3ZF2...

--

Gear
Microphone - https://amzn.to/34bDTxH
Hard Drive - https://amzn.to/30m5E5M

--

Let's Connect
Dribbble: https://dribbble.com/angeladelise
Blog:   / angeladelise  

--

DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting my channel so I can continue to provide you with free content each week!

#vanillajs #vanillajavascript #vanillajavascriptproject #counterjs