Skip to content

Instantly share code, notes, and snippets.

View imkremen's full-sized avatar

Volodymyr Hrebnov imkremen

View GitHub Profile
@imkremen
imkremen / bezier.js
Created March 29, 2018 15:04 — forked from mckamey/bezier.js
JavaScript port of Webkit CSS cubic-bezier(p1x.p1y,p2x,p2y) and various approximations
/*
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
@imkremen
imkremen / flexbox.less
Last active February 3, 2017 16:32 — forked from armornick/flexbox.less
Less Flexbox mixins (translation from sass)
// mixins based on code from:
// https://github.com/mastastealth/sass-flex-mixin/blob/master/_flexbox.scss
.flexbox() {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.flex-direction(@value) {
(function($){
"use strict";
var startY;
var defaults = {
"$these": [],
"touchstartInit": false,
"touchmoveInit": false
};