Skip to content

Facebook style animated video border progress bar using vanilla Javascript, HTML and CSS

License

Notifications You must be signed in to change notification settings

aCodeDragon/progress-bar-border-animation-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook style animation progress bar border in Vanilla Javascript, HTML and CSS

Whilst scrolling Facebook, I noticed a cool way to show the video progress bar, using border around the video.

In this tutorial, I've created a way to replicate this animation for fun. If you like it please use it!

Link to the YoutTube Tutorial

This is a great way to practice your Javascript and CSS, as well as add some flavour to your hosted videos on your website.

Topics Covered

Javascript

  • Event Listeners
  • Video API
  • setProperty method
  • Math.floor() function
  • ternary operator

CSS

  • pseuo-elements
  • custom properties
  • flexbox

About

Facebook style animated video border progress bar using vanilla Javascript, HTML and CSS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published