Up Arrow
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 - 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);
Developer | Mark Thomes |
Username | WithAnEs |
Uploaded | July 04, 2022 |
Rating | 4.5 |
Size | 7,830 Kb |
Views | 38,456 |
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!
Name | Size |
Basic Menu CSS | 2,787 Kb |
CSS Birthday Cake | 8,353 Kb |
SVG Stroke Pie Chart | 10,209 Kb |
404 Animated Character | 8,559 Kb |
Hiding in a box | 3,138 Kb |
Save Bar | 2,719 Kb |
CSS Colorado Flag | 6,649 Kb |
Up Arrow | 7,830 Kb |
SVG Search... | 7,601 Kb |
Twitter Feed Loading Animation | 6,763 Kb |
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!
Name | Username | Size |
Toolbar | Onsen | 5,414 Kb |
Simple star rating using js and data-uri | TheEnd | 5,795 Kb |
Loading... | Adamjacob | 2,384 Kb |
CSS Parent Selector | Tomhodgins | 2,143 Kb |
CSS only simple parallax scroll | Stanssongs | 3,708 Kb |
Promodoro | Bencarp | 1,712 Kb |
Wikipedia API | Coderpilot | 2,802 Kb |
Velocity.js custom stagger | Tommiehansen | 4,805 Kb |
Ghost | Mghayour | 11,738 Kb |
NT Tribute | Skybutterfly | 2,850 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!