Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Vladimir Varbanov vladyn

Block or report user

Report or block vladyn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View RandomIndex
var arr = ["one", "two", "three"];
var randomIndex = Math.floor( Math.random() * arr.length );
@vladyn
vladyn / dabblet.css
Created Jul 29, 2013 — forked from LeaVerou/dabblet.css
Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
View dabblet.css
/**
* Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
* Caveat: Not DRY. The content needs to be repeated in a data- attribute (or directly in the CSS).
*/
body {
background: #ccc51c;
min-height: 100%;
}
@vladyn
vladyn / gist:1994593
Created Mar 7, 2012
LESS: Useful Mixins
View gist:1994593
.text-shadow (@string: 0 1px 3px rgba(0, 0, 0, 0.25)) {
text-shadow: @string;
}
.box-shadow (@string) {
-webkit-box-shadow: @string;
-moz-box-shadow: @string;
box-shadow: @string;
}
.drop-shadow (@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25) {
-webkit-box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
You can’t perform that action at this time.