Skip to content

Instantly share code, notes, and snippets.

View EzeRangel's full-sized avatar
🤠
Working

Ezequiel Rangel EzeRangel

🤠
Working
View GitHub Profile
@EzeRangel
EzeRangel / iOSHover
Last active February 21, 2017 00:45
Simulate hover effect on click event
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
$(".hover-affected-element").click(function(){
//we just need to attach a click event listener to provoke iPhone/iPod/iPad's hover event (¿?)
});
}
@EzeRangel
EzeRangel / gist:6798736
Last active December 24, 2015 12:38
Instead of adding a class via javascript for implementing some kind of animation, we can 'simulate' this extending a 'Silent class' with Sass.
.popup-container:hover > .popup{
@extend %fadeIn;
}
.popup{
visibility: hidden;
/*Some other styles*/
}
/*Silent Class*/
%fadeIn{