How to Create a VueJS Scroll Based Percent Bar - Day 14 - #100DaysOfCode

preview_player
Показать описание
More VueJS! In this tutorial we create a Vue scroll-based percentage bar. As you scroll a post it shows you your progress made in a specific post.

Would you like to see one of the following frameworks in a tutorial? ReactJS, React Native, Angular, Cordova App Wrapper. Let me know if the comments.

The main language used in this video is JavaScript.

My Rig: MacBook Pro 13” 2015 + Additional 27” Dell monitor
My Text Editor: VSCode
My Theme: Google Material

Get the repo here…

Follow me on Twitter for upload updates…

Thanks for watching!

If you enjoyed leave a like.
If you want more than subscribe.
If you have any feedback drop it in the comments below!

#100DaysOfCode #100DaysOfCodeChallenge
Рекомендации по теме
Комментарии
Автор

<div class="fill" :style="{'left': this.percentage}">
and in the onScroll method add this
this.percentage = percent+'%'
style
left: 100%
right: 0%
with this, I could avoid adding the width through "for loop"

ahmadatef
Автор

When you were trying to keep it visible inside the element as you scrolled

bjni
Автор

You couldve done position: sticky, right?

bjni
welcome to shbcf.ru