Skip to content

Instantly share code, notes, and snippets.

@Hetim
Hetim / functions.php
Created August 17, 2018 11:23 — forked from isGabe/functions.php
WordPress: Auto versioning of CSS/JS files #snippet #WordPress
/*
Auto-version CSS & JS files, allowing for cache busting when these files are changed.
Place in functions.php or wherever you are enqueueing your scripts & styles
Avoids using query strings which prevent proxy caching
Adjust paths based on your theme setup. These paths work with Bones theme
*/
@Hetim
Hetim / smooth-scroll.js
Created August 17, 2018 11:23 — forked from Anthodpnt/smooth-scroll.js
Misc - Smooth Scroll
/**
* This gist is for Javascript beginners.
* @author: Anthony Du Pont <antho.dpnt@gmail.com>
* @site: https://www.twitter.com/JsGists
*
* In episode #11 of "Gist for Javascript Beginners" I explained what was a Linear Interpolation.
* In this episode I'll show you another case it's really usefull.
*
* It's a trend since a few months to add smooth scroll to websites because the look-and-feel is
* better than the basic scroll of the browser. But how do you do this kind of effect ? Thanks
@Hetim
Hetim / parallax.js
Created August 17, 2018 11:22 — forked from Anthodpnt/parallax.js
Misc - Parallax
/**
* This gist is for Javascript beginners.
* @author: Anthony Du Pont <antho.dpnt@gmail.com>
* @site: https://www.twitter.com/JsGists
*
* Another trendy effect you will find on many websites is Parallax. A parallax is created when to elements
* move at the same time but with different values. This is often used to create depth effects when the
* furthest element move more than the nearest element.
*
* Example: