Skip to content

This is NPM for Change BG Color when the web page is Scrolling.

Notifications You must be signed in to change notification settings

SLIIT-2020-June/backgroundColorChanger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What Is This ?

Ths is NPM for Change BG Color when web page is Scrolling.

Installation

npm i bg-color-change

Then... do this tasks in js file.

import {BGChange} from 'bg-color-change';
window.addEventListener('scroll', BGChange);

import css file as this

<link rel="stylesheet" href="node_modules/bg-color-change/index.css">

Style Apply

.page

style class to what is need to change color when scrolling.

<header>
        <div class="intro-text">
            <h1>Programming Lover</h1>
            <p>Change Colour Smoothly</p>
        </div>
</header>

<section class="page02">
    <h1>Welcome to next Background Section</h1>
    <p></p>
    <img src="img/pexels-olia-danilevich-4974920.jpg" alt="programming Image">
</section>

<section class="otherSec">
    <h1>Other Section</h1>
    <p></p>
    <p></p>
</section>

About

This is NPM for Change BG Color when the web page is Scrolling.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 86.9%
  • JavaScript 13.1%