html5 - Hover effect not working in android browser -
there mobile layout working on website, reason hover effect off-canvas toggle not working whenever use android browser test it. hover effect off-canvas nav links work fine. icon i'm using toggle part of font awesome font. not sure @ point. appreciated.
relevant html:
<div class="mobile sb-slide"> <span class="sb-toggle-left"> <i class="fa fa-bars"></i> </span> </div> <div class="sb-slidebar sb-left sb-style-push"> <nav class="slide"> <ul> <li><a href="index.html" class="pink">home</a></li> <li><a href="about.html" class="orange">about</a></li> <li><a href="contact.html" class="purple">contact</a></li> <li><a href="schedule.html">schedule</a></li> </ul> </nav> </div> relevant css:
div.mobile { display: none; background-color: #64b2f5; border-bottom: 5px solid #ffffff; position: fixed; top: 0; left: 0; right: 0; z-index: 99999999; } div.mobile span { color: #ffffff; font-size: 1.75em; padding: 0.4em 0.5em; cursor: pointer; } div.mobile span i:hover { color: #000000; background-color: #ffffff; transition: 400ms ease; } nav.slide ul { display: -webkit-flex; display: -moz-box; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-flex-direction: column; -webkit-box-orient: vertical; -moz-box-orient: vertical; -ms-flex-direction: column; flex-direction: column; text-align: right; } nav.slide ul li { display: block; text-decoration: none; color: #ffffff; font-size: 1.65em; padding: 0.45em 0.6em; border-bottom: 2px solid #ffffff; } nav.slide ul li a:hover { color: #000000; background-color: #ffffff; outline: none; } nav.slide ul li a.pink:hover { background-color: #d9618f; } nav.slide ul li a.orange:hover { background-color: #5ee9ef; } nav.slide ul li a.purple:hover { background-color: #9648a5; } @media screen , (max-width:825px) { div.mobile { display: block; } }
because phone don't have functionality hover.
a click(tap) work hover in android browser.
i created gallery in website. in hovering on image shows sharing link in mobile works when user tap on image
Comments
Post a Comment