Skip to main content

Hover does not work on mobile and tablet

Comments

7 comments

  • KC George

    Hi Vantrinh,

    Can you elaborate your question? How do you propose to use the hover function on a mobile or a tablet? Do you use a mouse pointer on a tablet or mobile? Do you have another device you use to hover over page elements?

       

    0
  • vantrinh duong

    Hover works well in CSS3 for touch devices (tablets and phones), When touching the object the hover effect is similar to hovering the mouse.

    0
  • KC George

    Hi Vantrinh,

    Do you have a reference website where you touch on a page element on a mobile screen and the background color changes to a hover color? We would like to take a look at it.

    0
  • vantrinh duong

    https://www.webcode24h.com/

     

    You can see, when I hover the mouse or select the object on the touch screen. The image with a dark color layer to highlight the text content.

     

    0
  • KC George

    Hi Vantrinh,

    Looks like you have already implemented this in your agency website. May be you should tell us how you did it.

    0
  • vantrinh duong

    I don't understand why you guys don't allow color overlay on screen sizes smaller than 991px.
    I found this css code @media screen (min-width: 991px) { .nameclass:hover {....}}
    Just remove the "min-width: 991px" to allow it to apply to all different screen width.
    In my example I added custom css.

    0
  • vantrinh duong

    When touches the object on the touch screen. The result is similar to hovering the mouse on the desktop.

    0

Please sign in to leave a comment.