CSS Dynamic Effects---the mouse over the right side of the link, the text swipe right

Source: Internet
Author: User

In peacetime when we browse the Web, when the mouse over a link, often see this effect, the link to the right slide a bit, in fact, want to achieve this effect is very simple, as long as a transition attribute can be achieved, nonsense not much said, on the code:

The HTML  

<ul>   <li>      <a href= "#" > Hover over Me </a>   </li>   <li>      <a href= "#" > Hover over Me </a>   </li>   <li>      <a href= ' # ' > Hover over Me </a>< c12/></li>   <li>      <a href= "#" > Hover over Me </a>   </li></ul>

The CSS

UL a {    -webkit-transition:padding. 4s;    -moz-transition:padding. 4s;    -o-transition:padding. 4s;    Transition:padding. 4s; } a:hover {    padding-left:6px;}

CSS Dynamic Effects---the mouse over the right side of the link, the text swipe right

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.