CSS Animations
Posted in
2910
11:14 pm, March 31, 2022
Animated Button Border when Active
What is it?
A button with a top and bottom border, when you mouse over it the border extends to the width of the button.
Preview
a preview of Animated Button Border when Active
What can i use this for?
You could add this animation to any of the buttons in your next project.
Animated Button Border when Active Demo
View Demo Full Screen View Demo New Tab
Animated Button Border when Active Code
HTML
<button class="animated-border-button">Submit</button>
CSS
.animated-border-button {
background-color: #263059;
border: none;
color: #ffffff;
outline: none;
padding: 12px 40px 10px;
position: relative;
}
.animated-border-button:before,
.animated-border-button:after {
border: 0 solid transparent;
transition: all 0.3s;
content: '';
height: 0;
position: absolute;
width: 24px;
}
.animated-border-button:before {
border-top: 2px solid #263059;
right: 0;
top: -4px;
}
.animated-border-button:after {
border-bottom: 2px solid #263059;
bottom: -4px;
left: 0;
}
.animated-border-button:hover:before,
.animated-border-button:hover:after {
width: 100%;
}
External Link for Animated Button Border when Active
Related Tags
Add Comment
Other Items in CSS Animations
Smooth Scrolling with just CSS
Radial Glow under cursor on box hover over effect
Pure CSS 3D Flipping Book with Animations
button animations hover and fill animation
button on focus swing animation
Animated Button Border when Active
Single Element CSS Spinners
CSS Shake - Shake up your elements
Check Wave Click a Checkbox and Watch the Animation
CSS Typing Effect using just CSS
Related Search Terms
Other Categories in Code
404 pages animation animations background effects boxes buttons css css & javascript css animation css animations css backgrounds css cursors css framework css frameworks css modal css positions css reset css shadows css slider css text effects css text formatting css tips css tools css z-index content slider cookie alerts design html css sections html canvas html sections icons image zoom interactive images lightbox link effects loading animation modals mouse effects navigation notifications parallax profiles quick css seo sections text ui web developer checklists animations backgrounds bootstrap buttons css css animated css animations css framework css grid footers forms html image effects images javascript scroll effects sections show your work svg text animation timeline
css animations
HTML Canvas
javascript