2015-07-12 57 views
1

在CSS3中做这样的事情的一般想法/技术是什么?可能吗?果冻输入动画的css3技巧

(我说的是行,而不是标签,我知道该怎么做)

enter image description here

我发现它here

+0

学习CSS动画,然后你可以自己做; – Muhammad

+0

@穆罕默德类似的评论可以适用于所有的问题!学习XYZ,你就可以做到! – vals

+1

@穆罕默德可能或不可能做到这一点确切的效果,所以我要求那些已经在这个问题上的专家。 – parliament

回答

1

这不正是你想要的。但是看看:

body, 
 
html { 
 
    background: #111; 
 
} 
 
#ib { 
 
    width: 300px; 
 
    height: 50px; 
 
    font-size: 40px; 
 
    background: transparent; 
 
    color: white; 
 
    border: none; 
 
    border-bottom: 2px solid #09f; 
 
    outline: none; 
 
} 
 
#ib:focus { 
 
    -webkit-animation: anim 0.3s cubic-bezier(0.080, 0.805, 0.930, 0.220); 
 
} 
 
@-webkit-keyframes anim { 
 
    0% { 
 
    border-radius: 0px; 
 
    } 
 
    50% { 
 
    border-radius: 150px/10px; 
 
    } 
 
    100% { 
 
    border-radius: 0px; 
 
    } 
 
}
<input type="text" id="ib" placeholder="Type Something">