Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- body {
- overflow-y: hidden;
- overflow-x: hidden;
- }
- .slider {
- width: 640px;
- height: 100px;
- position: relative;
- background: rgba (0,0,0,0);
- overflow: hidden;
- }
- .slider div{
- position:absolute;
- left:0;
- top:0;
- /*animation-name:slide_in;*/
- /*animation-duration:96s;*/
- /*animation-iteration-count:linear infinite;*/
- animation: slide_in 96s linear infinite;
- }
- .slider div:nth-child(1) {
- animation-delay: 0s;
- }
- .slider div:nth-child(2) {
- animation-delay: 16s;
- }
- .slider div:nth-child(3) {
- animation-delay: 32s;
- }
- .slider div:nth-child(4) {
- animation-delay: 48s;
- }
- .slider div:nth-child(5) {
- animation-delay: 64s;
- }
- .slider div:nth-child(6) {
- animation-delay: 80s;
- }
- @keyframes slide_in{
- 0%{
- padding-left: 100%;
- }
- 1%{
- padding-left: 0%;
- }
- }
RAW Paste Data