Skip to content

This is a simple but neat technique to remove the background from a black and white video and color it using the mix-blend-mode property using pure CSS. This technique allows you to emulate various looped and dynamic spheres and shapes without using WebGL with a pre-prepared video.

Notifications You must be signed in to change notification settings

Cuberto/transparentize-video-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cuberto Colorized & Transparent Video Trick Demo

Frontend dependencies (only for demo)

Smooth Scrollbar (https://github.com/idiotWu/smooth-scrollbar)

GSAP v3 (https://greensock.com/gsap/)

Setup demo project

npm install or yarn install

Start demo project

gulp or gulp serve deploy app and start browsersync server + watchers

File structure

├── /tmp/                       # Temporary served files
└── /src/                       # The source code of the application
    ├── /js/                    # JavaScript source
    ├── /pug/                   # Pug templates
        └── /_includes/         # Pug partials
    ├── /scss/                  # SCSS styles
    ├── /static/                # Static files (fonts, images, videos, etc..)

About

This is a simple but neat technique to remove the background from a black and white video and color it using the mix-blend-mode property using pure CSS. This technique allows you to emulate various looped and dynamic spheres and shapes without using WebGL with a pre-prepared video.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published