Skip to content

Instantly share code, notes, and snippets.

View c0defre4k's full-sized avatar

c0defre4k

View GitHub Profile
@c0defre4k
c0defre4k / transitionEnd.js
Created February 27, 2020 10:16
Get the name of transitonend event
/**
* Check for transition end support
* Based on https://gist.github.com/O-Zone/7230245
* @returns {String}
*/
export default function transitionEndEvent() {
const transitions = {
transition: 'transitionend',
WebkitTransition: 'webkitTransitionEnd',
MozTransition: 'transitionend',
@c0defre4k
c0defre4k / embed-output.css
Last active March 21, 2018 14:57
Variable ratios for responsive embeds
.embed-responsive-21by9::before {
padding-top: 42.85714%;
}
.embed-responsive-16by9::before {
padding-top: 56.25%;
}
.embed-responsive-4by3::before {
padding-top: 75%;
/*
* Created on : 20.02.2014, 10:43:52
* Author : rpillichshammer
*/
/*
* main mixin for arrows
* ----------------------------
*/
@defaultArrowSize: 4px;