Sliding Lines Animation

Developer
Size
2,572 Kb
Views
12,144

How do I make an sliding lines animation?

Some lines sliding in from the corners, for a modal background animation. Using jQuery transit.. What is a sliding lines animation? How do you make a sliding lines animation? This script and codes were developed by Adam Grayson on 10 November 2022, Thursday.

Sliding Lines Animation Previews

Sliding Lines Animation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Sliding Lines Animation</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="top"> <ul> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> </ul>
</div>
<div class="bottom"> <ul> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> </ul>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://ricostacruz.com/jquery.transit/jquery.transit.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Sliding Lines Animation - Script Codes CSS Codes

html, body { height: 100%;
}
.top, .bottom { position: fixed; top: 0; left: 0; width: 100%; height: 100%;
}
.top ul, .bottom ul { width: 100%; height: 100%; overflow: hidden;
}
.top ul li, .bottom ul li { height: 100%; width: 1%; float: left;
}
.top { -webkit-transform: rotate(45deg) scale(2.5) translateY(-100%); transform: rotate(45deg) scale(2.5) translateY(-100%);
}
.top ul li:nth-child(odd) { background: #00A388;
}
.bottom { -webkit-transform: rotate(45deg) scale(2.5) translateY(100%); transform: rotate(45deg) scale(2.5) translateY(100%);
}
.bottom ul li:nth-child(even) { background: #79BD8F;
}

Sliding Lines Animation - Script Codes JS Codes

var $top = $('.top'),	$bottom = $('.bottom'), animationTime = 3000;
$top.transition({ rotate: '45deg',	scale: '2.5', y: '0px'
}, animationTime)
$bottom.transition({ rotate: '45deg',	scale: '2.5', y: '0px'
}, animationTime)
Sliding Lines Animation - Script Codes
Sliding Lines Animation - Script Codes
Home Page Home
Developer Adam Grayson
Username agrayson
Uploaded November 10, 2022
Rating 3
Size 2,572 Kb
Views 12,144
Do you need developer help for Sliding Lines Animation?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Adam Grayson (agrayson) Script Codes
Create amazing art & images with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!