GithubHelp home page GithubHelp logo

svyrydvladymyr / sliders Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 56 KB

Sliders

Home Page: https://svyrydvladymyr.github.io/sliders/

License: MIT License

HTML 61.88% JavaScript 6.07% CSS 32.05%
sliders

sliders's Introduction

KALCIFER SLIDERS

The slider template is simple and versatile. You can add as many slider blocks to a page as you like. You can also insert in each other without restrictions. The template has five color schemes. You can change each pattern as you like, and you can add your own color scheme.

How to use

The first way using jQuery:

To head:

<link rel="stylesheet" href="sliders/css/style.css">
<script src="https://code.jquery.com/jquery-3.5.0.js"></script>

To body:

<div class="slider"></div>
<script> $(".slider").load("sliders/slider.html"); </script>

The second way is to add markup to your document:

<div class="kalcifer_slider blue">
     <p class="title">Title</p>
     <div class="desc">            
        <p>Text</p>
     </div>
     <p class="title">Title</p>
     <div class="desc">
         <p>Text</p>
     </div>
</div> 

About color schemes

Color schemes for each slider can be set individually. To do this, you need to change the color class in the slider. There are the following color schemes: blue, green, red, gray, yellow.

To change to one of the existing color schemes, you need to replace the slider wrapper class.

<div class="kalcifer_slider blue">
    ...
</div> 

You can also create your own color scheme.

Create a color scheme file.

(your_file_name).css

Import into the main color scheme.

@import "templates/name.css";

Change the color scheme styles to the ones that suit you.

.kalcifer_slider.(your_class_name) > .title{
    border: 1px solid #5681bf;
    border-radius: 8px;
    background: #5681bf;
    color: #ffffff;
}

.kalcifer_slider.(your_class_name) > .title:hover{
    background: #628cc9;
}

.kalcifer_slider.(your_class_name) > .desc{
    border: 1px solid #5681bf;
    border-radius: 0px 0px 8px 8px;
    background: #ffffff;
    color: #111111;
}

.kalcifer_slider.(your_class_name) > .title.active{
    border-radius: 8px 8px 0px 0px;
}

.kalcifer_slider.(your_class_name) > .title.active:hover{
    background: #5681bf;
}

Slider with a icon

To see the icon in the slider, you need to add a class icon to the slider wrapper.

<div class="kalcifer_slider blue icon">
    ...
</div> 

See a sample slider

Moved to svyrydvladymyr.github.io/sliders/

Open in Cloud Shell

Open in Cloud Shell

License

MIT

sliders's People

Contributors

svyrydvladymyr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.