Search
 
SCRIPT & CODE EXAMPLE
 

CSS

loading bar css

/*
	Simple mini-loading bar
    Working on: https://jsfiddle.net/alexlatorre/xe1tn9kh/1/
*/

<span class="loading"></span>

.loading {
    width: 250px;
    display: block;
    height: 2px;
    margin: 0px auto; 
    border-radius: 2px;
    background-color: #cfcfcf;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
 .loading:before {
    content:'';
    height: 3px;
    width: 68px;
    position: absolute;
    -webkit-transform: translate(-34px, 0);
    -ms-transform: translate(-34px, 0);
    transform: translate(-34px, 0);
    background-color: #3b4a5e;
    border-radius: 2px;
    -webkit-animation: initial-loading 1.5s infinite ease;
    animation: animation 1.6s infinite ease;
}
@-webkit-keyframes animation {
    0% {
        left: 0
    }
    50% {
        left: 100%
    }
    100% {
        left: 0
    }
}

@keyframes animation {
    0% {
        left: 0
    }
    50% {
        left: 100%
    }
    100% {
        left: 0
    }
}
Comment

PREVIOUS NEXT
Code Example
Css :: css padding syntax 
Css :: how to put something on layers css 
Css :: hide in css 
Css :: flex wrap tailwind 
Css :: place two div elements next to each other 
Css :: css responsive image 
Css :: use CSS to add a bullet point 
Css :: what is the best way to center a div 
Css :: nprogress css 
Css :: add color on image using css 
Css :: how to make border hover effect in css 
Css :: general sibling selector 
Css :: style button for safari 
Css :: how make button which is fixed even after i scroll 
Css :: webpack animate.css 
Css :: css line height 
Css :: how to increase the area of a text are 
Css :: text slide animation css 
Css :: css letter spacing tight 
Css :: css target type 
Css :: scss global class 
Css :: calculate using n nth-child 
Css :: css stands for 
Css :: what is universal selector 
Css :: css change background color on hover 
Css :: select parent element css 
Css :: css contain property 
Css :: NeuMorphisme button code 
Css :: how to make the position of a div always stay while scrolling 
Css :: css how to find all ids that end with something 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =