Тёмный

Simple Increment and Decrement Counter | Vanilla JavaScript Project Explained 

Angela Design
Подписаться 46 тыс.
Просмотров 7 тыс.
50% 1

New to CSS Grid? Watch the full Crash Course here: • CSS Grid Crash Course ...
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: 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: www.youtube.com/watch?v=D3ZF2...
--
Gear
Microphone - amzn.to/34bDTxH
Hard Drive - amzn.to/30m5E5M
--
Let's Connect
Dribbble: 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

Наука

Опубликовано:

 

13 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@dethcx22
@dethcx22 3 года назад
Hey there Angela, just wanted to say that I've found your videos to be best on RU-vid for learning CSS. You're to the point and provide great examples, thank you so much. :)
@angeladesign737
@angeladesign737 3 года назад
Thank you so much! Let me know if there is a specific tutorial you would like to see!
@Dean-oh5xw
@Dean-oh5xw 2 года назад
Great video.. very informative and straight to the point …you did a good job .
@Rachel-eq7uf
@Rachel-eq7uf 3 года назад
great refresher for me.. I went through a couple of certificates online and we did something like this. You showed how it could be done in a different way and it was helpful. I ended up putting my counter between the decrement and increment buttons and it worked out the way I wanted it styled. Thanks for sharing! FYI: including a focus state on your buttons will help you get rid of that outline that happens whenever a button is clicked on. I notice that it keeps appearing in a different area than where the buttons are located.
@singhgagandeep955
@singhgagandeep955 2 года назад
thank you very much you solve my problem
@sebdur7489
@sebdur7489 3 года назад
thank you very much, your channel is fantastic, keep it up!
@angeladesign737
@angeladesign737 3 года назад
Thanks!
@ourielperez1646
@ourielperez1646 2 года назад
Thank you
@DevsLikeUs
@DevsLikeUs 3 года назад
Great tutorial, you present your info extremely Well.
@angeladesign737
@angeladesign737 3 года назад
Thank you! Happy it was helpful!
@salsea
@salsea 3 года назад
Wow, your presentation is great - I'm that person that needs that detail to understand - thanks
@angeladesign737
@angeladesign737 3 года назад
Thank you! Happy it was helpful!
@95tbf
@95tbf 3 года назад
Awesome video!
@angeladesign737
@angeladesign737 3 года назад
Thank you!
@ShaharKBar
@ShaharKBar 3 года назад
Thanks a lot 🙏🏻 Super helpful for me in my first steps with Js :)
@angeladesign737
@angeladesign737 3 года назад
Glad it helped!
@adheeshburthia3584
@adheeshburthia3584 Год назад
Was searching for that, thank you so much Btw how do I get the value?
@angelaparkes451
@angelaparkes451 Год назад
Hi! I know that this video is like pretty old, but I hope you can respond to my question! First, I love this little counter its amazing~ however, I want to be able to actually click on the number and input any number I want to put in the number field. Is that possible? Is it possible to have the increment buttons and a number field input combined? I'm just starting to learn how to code and for some reason it seems impossible. Thanks!!
@dsains6847
@dsains6847 2 года назад
Hello i want to ask, how the count variable on the other function recognized the current number ?. For example if we click increment and the number change until 5, and then we click decrement the number change to 4. I thought the output is -1 because count variable it's declared 0 outside the function. Sorry i am a newbie🤞
@valentinaotocan5692
@valentinaotocan5692 3 года назад
Can you clone a Responsive Website page using HTML and CSS from scratch :D? You are great. I love your videos. xoxo
@angeladesign737
@angeladesign737 3 года назад
Thank you so much! I was thinking of creating another full responsive website tutorial; I already have this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-eaU8Ml2a0So.html&lc=UgxHMiOmTcCQJXvQyfJ4AaABAg Let me know if there is a specific kind of design you would like a tutorial on!
@valentinaotocan5692
@valentinaotocan5692 3 года назад
@@angeladesign737 I saw that and was awesome. Something like www.restaurantkopun.com/, but what ever you pick will be good. :) keep up the good work.
@moktan9842
@moktan9842 3 года назад
Your voice is beautiful
@regretfulladproductions4300
Do you know what if condition could be put in to keep the number at established count maximum(starting. Say max count = x. But during increment it goes to z which is greater than x.) I'll include attribution and links to the code of urs being used on the web page game if u can help me out with this. Adrian Bece has an alternative but it's messy af.
@regretfulladproductions4300
Rather it's cumbersome, not messy
@jizan8344
@jizan8344 3 года назад
First comment ❤️
@angeladesign737
@angeladesign737 3 года назад
🎉
@MiguelOcampo
@MiguelOcampo 3 года назад
Everything was great until you got to CSS and decided to not explain the pre-processor of SCSS
Далее
Animating News Article Cards | CSS Grid & Flexbox
12:32
Boots on point 👢
00:24
Просмотров 1,6 млн
Epic Reactions 😂
00:33
Просмотров 2,7 млн
Pseudo Elements with Font Awesome Icons
8:05
Просмотров 6 тыс.
The secret to mastering CSS layouts
17:11
Просмотров 270 тыс.
React Counter | Simple Counter with React Hooks
18:29
Beginner Vanilla Javascript Project Tutorial
1:15:19
Просмотров 894 тыс.
How to Learn to Code FAST (Do This or Keep Struggling)
11:00
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
$1 vs $100,000 Slow Motion Camera!
0:44
Просмотров 20 млн