Link to Button Conversion Effect

Written by @kerixa 28 August 2020

Links and buttons have often similar usages. So you can use this idea to turn a link to button when it is hovered. It makes your site beautiful and attractive and users might be engaged to explore what is behind that link/button.

Code Snippet:

                                                <!-- this script is provided by coded by: Kerixa Inc. -->
<link href='' rel='stylesheet' type='text/css'>
html, body {
  background: rgb(20,20,20);
  text-align: center;
  height: 100%;
  overflow: hidden;
.svg-wrapper {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
	  margin: 0 auto;
  width: 320px;  
.shape {
  stroke-dasharray: 140 540;
  stroke-dashoffset: -474;
  stroke-width: 8px;
  fill: transparent;
  stroke: #19f6e8;
  border-bottom: 5px solid black;
  transition: stroke-width 1s, stroke-dashoffset 1s, stroke-dasharray 1s;
.text {
  font-family: 'Roboto Condensed';
  font-size: 22px;
  line-height: 32px;
  letter-spacing: 8px;
  color: #fff;
  top: -48px;
  position: relative;
.svg-wrapper:hover .shape {
  stroke-width: 2px;
  stroke-dashoffset: 0;
  stroke-dasharray: 760;
<script src=""></script>
<div class="svg-wrapper">
<a href="" style="text-decoration:none">
<svg height="60" width="320" xmlns="">
<rect class="shape" height="60" width="320" />
<div class="text">HTML Codes</div>
</div><a target='_blank' href='' style='font-size: 8pt; text-decoration: none'>Html Free Codes</a>                                                


About @kerixa

I am Krishna Eydat. I studied Software Engineering at University of Waterloo in Canada. I lead a few tech companies. I am passionate about the way we are connected. I would like to be part of something big or be the big deal!



Here you can leave us commments. Let us know what you think about this code tutorial!

0 / 300

Online Users: 12
Recent Members: carfaoui, Ali7hry, alexnicola, Adam20, Prashanthcs11
advertisement 2