Skip to content

Instantly share code, notes, and snippets.

View marco-van-zomeren's full-sized avatar
:octocat:
Hello world!

marco-van-zomeren

:octocat:
Hello world!
View GitHub Profile
@marco-van-zomeren
marco-van-zomeren / safari_border-radius_overflow-hidden_hover-fix.css
Last active February 2, 2019 12:17
Safari border-radius + overflow: hidden + hover fix
.block__image-container {
background-image: ... ;
border-radius: 5px;
overflow:hidden;
-webkit-mask-image: -webkit-radial-gradient(white, black);
}
// ARROW
$arrow-size: 31px;
$arrow-border: 1.2px;
.read-more,
a[rel~="next"],
a[rel~="prev"] {
position: relative;
i {
// FADEIN
var animateHTML = function() {
var elems;
var windowHeight;
function init() {
elems = document.querySelectorAll('.fx_fadeInUp');
windowHeight = window.innerHeight;
addEventHandlers();
checkPosition();
}
// SHARE PAGE
$(document).ready(function () {
$('.js__share-page a.share-page__on-facebook').click(function () {
var link = $(location).attr('href');
var facebookUrl = "https://www.facebook.com/sharer/sharer.php?u=" + link;
window.open(facebookUrl);
});
$('.js__share-page a.share-page__on-twitter').click(function () {
var link = $(location).attr('href');
var twitterUrl = "https://twitter.com/intent/tweet?url=" + link + '&text=' + "Hey, bekijk eens:" + link;