Mobile: Active,:hover does not work well to trigger an animated solution

Source: Internet
Author: User
<span id="Label3"></p>Mobile: Active,:hover does not trigger animation very well solution 1: problem environment:<p><p>An animation is defined with css3, using: the hover Pseudo-class does not animate well on the mobile side when the animation is Called.</p></p>2: the Solution:<p><p>Defines an open class that triggers an animation when the Open class is satisfied</p></p><p><p>Use the JS event to control the animation, add the Open class when sliding, and then delay the same time as the animation to remove the Open class</p></p><p><p>So you can control the animation very well.</p></p>3: Attach Demo<pre class="brush:javascript;gutter:true;"><! DOCTYPE html>

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.