Spin Text On Mouse Hover - Mxgk99

Spin Text On Mouse Hover Pure Html &Css. 

Preview:



HTML:

<!DOCTYPE html>
<html>
<head>
    <title>Spin Text</title>
    <link rel="stylesheet" type="text/css" href="Style.css">
</head>
<body>
<ul>
    <li>M</li>
    <li>X</li>
    <li>G</li>
    <li>K</li>
    <li>9</li>
    <li>9</li>
</ul>
</body>
</html>

CSS:

*{
    margin: 0;
    padding: 0;
    background: #ff008b;
}
ul{
padding: 50px;
margin: 0;
border: 10px solid #fff;
display: inline-block;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
ul li{
    list-style: none;
    color: #fff;
    float: left;
    font-size: 5em;
    font-family: "arial";
    transition: .9s;
}
ul:hover li{
    transform: rotateY(360deg);
}
ul:hover li:nth-child(1){
    transition-delay: .9s;
}

ul:hover li:nth-child(2){
    transition-delay: .8s;
}
ul:hover li:nth-child(3){
    transition-delay: .7s;
}
ul:hover li:nth-child(4){
    transition-delay: .6s;
}
ul:hover li:nth-child(5){
    transition-delay: .5s;
}
ul:hover li:nth-child(6){
    transition-delay: .4s;
}

Comments

Popular posts from this blog

CSS Neon Effect | CSS Hover Animaton

Hover Animation On Button

Loding Animation Using HTML and CSS