Skip to content

Instantly share code, notes, and snippets.

@simonlindsay
simonlindsay / input.scss
Created February 4, 2021 22:46
Generated by SassMeister.com.
div {
background-color: mix(rgba(166, 145, 113), #0061fe, 32%);
position: relative;
width: 100px;
height: 100px;
}
div#second {
background-color: mix(rgba(166, 145, 113, 0.32), #0061fe);
@simonlindsay
simonlindsay / input.scss
Created February 4, 2021 22:45
Generated by SassMeister.com.
div {
background-color: mix(rgba(166, 145, 113), #0061fe, 32%);
position: relative;
width: 100px;
height: 100px;
}
div#second {
background-color: mix(rgba(166, 145, 113, 0.32), #0061fe);
/**
Workaround for iOS 6 setTimeout bug using requestAnimationFrame to simulate timers during Touch/Gesture-based events
Author: Jack Pattishall (jpattishall@gmail.com)
This code is free to use anywhere (MIT, etc.)
Usage: Pass TRUE as the final argument for setTimeout or setInterval.
Ex:
setTimeout(func, 1000) // uses native code
setTimeout(func, 1000, true) // uses workaround
(function (window) {
// This library re-implements setTimeout, setInterval, clearTimeout, clearInterval for iOS6.
// iOS6 suffers from a bug that kills timers that are created while a page is scrolling.
// This library fixes that problem by recreating timers after scrolling finishes (with interval correction).
// This code is released in the public domain. Do with it what you want, without limitations. I do not promise
// that it works, or that I will provide support (don't sue me).
// Author: rkorving@wizcorp.jp
var timeouts = {};