CodeWithNiranjan / Animated-Christmas-banner-with-theme-changer-using-HTML

In this tutorial we will be learning how to create animated Christmas banner using HTML, CSS, JavaScript and SnowStorm.js

Home Page:https://youtu.be/oJ1-kkJdXR4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Animated Christmas banner with-theme changer using HTML

In this tutorial we will be creating animated christmas banner with theme changer using HTML, CSS and JavaScript

I am using SnowStorm.js in this project to add snow effect

Link for SnowStorm.js - http://www.schillmania.com/projects/snowstorm/

And use WinRAR to extract SnowStorm.js

Usage

Changing Snow color

snowStorm.snowColor = '#fff';

Changing theme

var theme = document.getElementById("theme");
var themebg = document.getElementById("themebg");

theme.onclick = function(){
    if(themebg.classList.contains("white")){
        themebg.classList.replace("white" , "red")
    }
    else{
        themebg.classList.replace("red","white")
    }
}

Subscribe

Please subscribe CodeWithNiranjan

Thank You

About

In this tutorial we will be learning how to create animated Christmas banner using HTML, CSS, JavaScript and SnowStorm.js

https://youtu.be/oJ1-kkJdXR4


Languages

Language:JavaScript 93.1%Language:CSS 4.6%Language:HTML 2.4%