Posted on • Updated on

Animated Mouse Scroll Icon Using GSAP



What is GSAP

GreenSock Animation Platform (GSAP) is a well-known suite of JavaScript tools for creating web animations.


<div class="mouse-icon">
	<div class="scroll-icon"></div>


.mouse-icon {
	border: 2px solid #fff;
	width: 40px;
	height: 70px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	border-radius: 50px;
	padding: .6em;
	margin: 1em;

.mouse-icon .scroll-icon {
	width: 8px;
	height: 16px;
	background-color: #fff;
	border-radius: inherit;


We utilize GSAP to animate the scroll icon. 

Import core gsap js first, then write the animation part. 


<script src=""></script>
<!-- GSAP scroll icon animation -->
end of article

Related Posts

Join Our Newsletter

Want the latest & greatest from our blog straight to your inbox with some exclusive offers from our partners and sponsors?

We won't spam. Promise.