Coder Wrap provides free to use snippets Coder Wrap provides free to use snippets

Back to CSS3
Preview Source Code
Download
HTML
CSS
/**Typeo CSS Start**/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

* {
	box-sizing: border-box;
}

body {
	font-family: "Poppins", sans-serif;
	color: #444;
	box-sizing: border-box;
	background-color: #fff;
	margin: 0px;
}

.btns-group {
	display: flex;
	flex-flow: row wrap;
	flex-direction: column;
	max-width: 600px;
	margin: 60px auto;
	justify-content: center;
}

.btns-group button.btn.draw-border {
	margin: 40px 0px;
}

/**Typeo CSS End**/
.btn-epic {
	display: grid;
	position: relative;
	margin: auto;
	width: 100%;
	max-width: 260px;
	height: 52px;
	background: #000;
	transform: translate3d(0px, 0%, 0px);
	text-decoration: none;
	font-weight: 600;
	font-size: 18px;
	letter-spacing: 0.05em;
	transition-delay: 0.6s;
	overflow: hidden;
}

.btn-epic:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #3ad2d0;
	border-radius: 50% 50% 0 0;
	transform: translateY(100%) scaleY(0.5);
	transition: all 0.6s ease;
}

.btn-epic:after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000;
	border-radius: 0;
	transform: translateY(0) scaleY(1);
	transition: all 0.6s ease;
}

.btn-epic div {
	position: relative;
	top: 16px;
	width: 100%;
	height: 26px;
	text-transform: uppercase;
	overflow: hidden;
}

.btn-epic span {
	position: absolute;
	z-index: 1;
	top: 0;
	width: 100%;
	text-align: center;
	transition: transform 0.5s ease;
}

.btn-epic span:first-child {
	color: #fff;
	transform: translateY(24px);
}

.btn-epic span:last-child {
	color: #fff;
	transform: translateY(0);
}

.btn-epic:hover {
	background: #3ad2d0;
	transition: background 0.2s linear;
	transition-delay: 0.6s;
}

.btn-epic:hover:after {
	border-radius: 0 0 50% 50%;
	transform: translateY(-100%) scaleY(0.5);
	transition-delay: 0;
}

.btn-epic:hover:before {
	border-radius: 0;
	transform: translateY(0) scaleY(1);
	transition-delay: 0;
}

.btn-epic:hover span:first-child {
	transform: translateY(0);
}

.btn-epic:hover span:last-child {
	transform: translateY(-24px);
}

/**Button Option 2**/
.draw-border {
	box-shadow: inset 0 0 0 4px #58afd1;
	color: #58afd1;
	transition: color 0.25s 0.0833333333s;
	position: relative;
}

.draw-border::before, .draw-border::after {
	border: 0 solid transparent;
	box-sizing: border-box;
	content: "";
	pointer-events: none;
	position: absolute;
	width: 0;
	height: 0;
	bottom: 0;
	right: 0;
}

.draw-border::before {
	border-bottom-width: 4px;
	border-left-width: 4px;
}

.draw-border::after {
	border-top-width: 4px;
	border-right-width: 4px;
}

.draw-border:hover {
	color: #ffe593;
}

.draw-border:hover::before, .draw-border:hover::after {
	border-color: #ffe593;
	transition: border-color 0s, width 0.25s, height 0.25s;
	width: 100%;
	height: 100%;
}

.draw-border:hover::before {
	transition-delay: 0s, 0s, 0.25s;
}

.draw-border:hover::after {
	transition-delay: 0s, 0.25s, 0s;
}

.btn {
	background: none;
	border: none;
	cursor: pointer;
	line-height: 1.5;
	font-size: 1.2rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 1em 2em;
	letter-spacing: 0.05rem;
}

.btn:focus {
	outline: 2px dotted #55d7dc;
}

/**Option 3**/
button {
	position: relative;
	display: inline-block;
	cursor: pointer;
	outline: none;
	border: 0;
	vertical-align: middle;
	text-decoration: none;
	background: transparent;
	padding: 0;
	font-size: inherit;
}

button.learn-more {
	width: 12rem;
	height: auto;
}

button.learn-more .circle {
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
	position: relative;
	display: block;
	margin: 0;
	width: 3rem;
	height: 3rem;
	background: #282936;
	border-radius: 1.625rem;
}

button.learn-more .circle .icon {
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
	position: absolute;
	top: 0;
	bottom: 0;
	margin: auto;
	background: #fff;
}

button.learn-more .circle .icon.arrow {
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
	left: 0.625rem;
	width: 1.125rem;
	height: 0.125rem;
	background: none;
}

button.learn-more .circle .icon.arrow::before {
	position: absolute;
	content: "";
	top: -0.25rem;
	right: 0.0625rem;
	width: 0.625rem;
	height: 0.625rem;
	border-top: 0.125rem solid #fff;
	border-right: 0.125rem solid #fff;
	transform: rotate(45deg);
}

button.learn-more .button-text {
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.75rem 0;
	margin: 0 0 0 1.85rem;
	color: #282936;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
	text-transform: uppercase;
}

button:hover .circle {
	width: 100%;
}

button:hover .circle .icon.arrow {
	background: #fff;
	transform: translate(1rem, 0);
}

button:hover .button-text {
	color: #fff;
}

Related Snippets

Leave a comment

Your email address will not be published. Required fields are marked *