Skip to content

Instantly share code, notes, and snippets.

@nladart
nladart / dabblet.css
Created February 6, 2017 19:14 — forked from chriscoyier/dabblet.css
Checkbox Hack
/* Checkbox Hack */
input[type=checkbox] {
position: absolute;
top: -9999px;
left: -9999px;
}
label {
-webkit-appearance: push-button;
-moz-appearance: button;
@nladart
nladart / SassMeister-input.scss
Created May 4, 2015 07:02
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
// '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//
// Google Font Mixin – v. 1.0.2 beta
//
// '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Speed Test: VelocityJS, GSAP, jQuery, and Transit

A reproduction of VelocityJS's "Performance Comparison #1" at http://julian.com/research/velocity/, but using updated GSAP files. Notice how GSAP prioritizes more accurate timing (start/end times) whereas VelocityJS will front-load the tween setup and delay the start (and completion) of the tweens, leading to pauses inbetween loops.

A Pen by GreenSock on CodePen.

License.

@nladart
nladart / Overflow-Image-Gallery.markdown
Created May 8, 2014 04:08
horizontal scroll on small. Key parts of CSS are white space no wrap and overflow scroll touch
@nladart
nladart / Direction-aware-hover-pure-CSS.markdown
Created January 13, 2014 08:36
A Pen by Fabrice Weinberg.
@charset "UTF-8";
/*---------------------------------------------------------------
IE78 - Zurb Foundation 4 Grid
ˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍ
https://gist.github.com/replete/7082477
(an enhanced fork of https://gist.github.com/zurbchris/5068210 )
1) Make sure $row-width-px = your max large breakpoint row width (e.g. 960px)
@nladart
nladart / content-create.php
Last active December 25, 2015 02:29 — forked from norcross/content-create.php
http://reaktivstudios.com/case-studies/nextdraft/ Can we move the whole NextDraft publishing process into WordPress? Parsing the HTML file into WordPress-structured content As mentioned earlier, Dave’s workflow started with an HTML file with pre-defined markup. Dave wanted to keep this setup because 1.) he was comfortable with it, and 2.) it mad…
<?php
/**
* AJAX call for parsing HTML
*
*/
public function parse_html() {
// get content from textarea
$text = $_POST['content'];
//Enlarge all the bacon.
$('.bacon').height(10000).refresh();

Custom Select Menu

A custom select menu without plugins.