javascript - jQuery Toggle Slide not working in Safari -


i have masonry grid hover effects. hover effects work fine in chrome don't work in safari. see code here:

http://codepen.io/ameliarae/pen/mbkjwv

when hover on image in safari happens:

enter image description here

the purple overlay doesn't slide out, doesn't go full width of container, , appears cropped both horizontally , vertically. in chrome working should (sliding out & purple overlay full width , height of container).

here's relevant code:

html:

<article>   <section class="portfolio-item">     <div class="overlay">     <div class="text-bloq">     <p>how truthful food labels? interactive quiz</p><br>     <span class="type">design &amp; dev</span>     </div>     </div>     </section> </article> 

scss:

 article {      -moz-column-width: 16em;      -webkit-column-width: 16em;      -moz-column-gap: 1em;      -webkit-column-gap: 1em;       section {          display: inline-block;          margin:  0.25rem;          padding:  1rem;          width:  100%;           background:  $purple;       }   }  .overlay{     position:absolute;     width: 100%;     display: block;     top:0;     left: 0;     text-align: left;     font-size: 1.55em;     font-family: $light;     color: $white;     opacity: 0.8;     height: 100%;     background: $purple;     .text-bloq{         display: block;         position: absolute;         margin: 50% auto;         left: 0;         right: 0;         padding:1em;         .description{             font-family: $light;             font-size: 0.75em;         }         .type{             font-family: $light;             font-size: 0.75em;             padding: 0.5em 0.65em;             border: 2px solid $white;             margin-top: 1em;         }     } } .portfolio-item{     position:relative;     overflow:hidden;     background-size:cover;     background-position:100%;     &:hover{         cursor: pointer;     } } .portfolio-item:nth-child(1){     background-image:url('http://placehold.it/600x600');     min-height: 600px;     &:hover{        @include animation('animatedbackgroundwork 10s linear infinite');    } } 

jquery:

$(document).ready(function(){ $(".portfolio-item").hover(function(){      $(this).find(".overlay").toggle("slide", { direction: "right" }, 1000);      }); }); 

full code here: http://codepen.io/ameliarae/pen/mbkjwv

i figured out. had replace overflow:hidden overflow:visible; .portfolio-item class work in chrome & safari.

so looks now:

.portfolio-item{      position:relative;      overflow:visible;      background-size:cover;      background-position:100%; &:hover{     cursor: pointer; } } 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -