Up Arrow

Developer
Size
7,830 Kb
Views
38,456

How do I make an up arrow?

Animated up arrow button style. Designed to make the action more user friendly for the end user. The text fades away and is replaced with a animation designed to hint at the effect this button will have on the site.. What is a up arrow? How do you make a up arrow? This script and codes were developed by Mark Thomes on 04 July 2022, Monday.

Up Arrow Previews

Up Arrow - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Up Arrow</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='css/7534eb3fb62294822de9eace9.css'> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(http://fonts.googleapis.com/css?family=Lato:700);
body { background: #333; font-family: 'Lato', sans-serif;
}
.arrow { position: absolute; top: 50%; left: 50%; margin-top: -30px; margin-left: -60px; display: inline-block; font-size: 26px; color: #b3c33a; text-align: center; width: 120px; height: 60px; line-height: 60px; border: 5px solid #b3c33a; overflow: hidden; text-transform: uppercase; cursor: pointer; transition: width 0.5s ease-in-out, margin 0.5s ease-in-out, border-radius 0.25s ease-in-out, color 0.25s ease-in-out;
}
.arrow:hover, .arrow.auto { width: 60px; margin-left: -30px; border-radius: 40px; color: rgba(179, 195, 58, 0); transition: width 0.5s ease-in-out, margin 0.5s ease-in-out, border-radius 1s 0.25 ease-in-out, color 0.25s ease-in-out 0.25s;
}
.arrow:hover:before, .arrow.auto:before { animation: lineUp 1s cubic-bezier(0, 0.6, 1, 0.4) infinite 0.5s;
}
.arrow:hover:after, .arrow.auto:after { animation: tipUp 1s cubic-bezier(0, 0.6, 1, 0.4) infinite 0.5s;
}
.arrow:before { position: absolute; display: inline-block; content: ""; background: #b3c33a; width: 5px; height: 40px; top: 50%; left: 50%; margin-top: -8px; margin-left: -3px; transform: translateY(50px);
}
.arrow:after { position: absolute; display: inline-block; content: ""; width: 20px; height: 20px; color: #b3c33a; border-top: 5px solid; border-left: 5px solid; transform: rotateZ(45deg); top: 50%; left: 50%; margin-top: -6px; margin-left: -13px; transform: translateY(50px) rotateZ(45deg);
}
@keyframes tipUp { 0% { transform: translateY(50px) rotateZ(45deg); } 100% { transform: translateY(-70px) rotateZ(45deg); }
}
@keyframes lineUp { 0% { transform: translateY(50px); } 100% { transform: translateY(-70px); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <span class="arrow">up</span> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/15979/footer-inject.js'></script> <script src="js/index.js"></script>
</body>
</html>

Up Arrow - Script Codes CSS Codes

@import url(http://fonts.googleapis.com/css?family=Lato:700);
body { background: #333; font-family: 'Lato', sans-serif;
}
.arrow { position: absolute; top: 50%; left: 50%; margin-top: -30px; margin-left: -60px; display: inline-block; font-size: 26px; color: #b3c33a; text-align: center; width: 120px; height: 60px; line-height: 60px; border: 5px solid #b3c33a; overflow: hidden; text-transform: uppercase; cursor: pointer; transition: width 0.5s ease-in-out, margin 0.5s ease-in-out, border-radius 0.25s ease-in-out, color 0.25s ease-in-out;
}
.arrow:hover, .arrow.auto { width: 60px; margin-left: -30px; border-radius: 40px; color: rgba(179, 195, 58, 0); transition: width 0.5s ease-in-out, margin 0.5s ease-in-out, border-radius 1s 0.25 ease-in-out, color 0.25s ease-in-out 0.25s;
}
.arrow:hover:before, .arrow.auto:before { animation: lineUp 1s cubic-bezier(0, 0.6, 1, 0.4) infinite 0.5s;
}
.arrow:hover:after, .arrow.auto:after { animation: tipUp 1s cubic-bezier(0, 0.6, 1, 0.4) infinite 0.5s;
}
.arrow:before { position: absolute; display: inline-block; content: ""; background: #b3c33a; width: 5px; height: 40px; top: 50%; left: 50%; margin-top: -8px; margin-left: -3px; transform: translateY(50px);
}
.arrow:after { position: absolute; display: inline-block; content: ""; width: 20px; height: 20px; color: #b3c33a; border-top: 5px solid; border-left: 5px solid; transform: rotateZ(45deg); top: 50%; left: 50%; margin-top: -6px; margin-left: -13px; transform: translateY(50px) rotateZ(45deg);
}
@keyframes tipUp { 0% { transform: translateY(50px) rotateZ(45deg); } 100% { transform: translateY(-70px) rotateZ(45deg); }
}
@keyframes lineUp { 0% { transform: translateY(50px); } 100% { transform: translateY(-70px); }
}

Up Arrow - Script Codes JS Codes

/* ICON AUTO PLAYS HOVER OVER ICON TO MAKE IT INTERACTIVE
*/
upInteractive = false;
function autoToggle() { $('.arrow').toggleClass('auto');
}
$('.arrow').hover(function() { upInteractive = true; $('.arrow').removeClass('auto');
});
setInterval(function(){ console.log(upInteractive); if(upInteractive === false) { autoToggle(); }
},2000);
Up Arrow - Script Codes
Up Arrow - Script Codes
Home Page Home
Developer Mark Thomes
Username WithAnEs
Uploaded July 04, 2022
Rating 4.5
Size 7,830 Kb
Views 38,456
Do you need developer help for Up Arrow?

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!

Mark Thomes (WithAnEs) Script Codes
Create amazing Facebook ads 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!