Skip to content

Instantly share code, notes, and snippets.

View arvindang's full-sized avatar

Arvin Dang arvindang

View GitHub Profile
http://bourbon.io
http://compass.handlino.com
http://middlemanapp.com
http://pages.github.com
http://necolas.github.io/normalize.css/
http://neat.bourbon.io
http://hex.colorrrs.com
@arvindang
arvindang / jsbin.ukaMUwi.css
Created October 21, 2013 16:42
jQuery slideshow with CSS transition.
/* Base */
.group:after {
content: "";
display: table;
clear: both;
}
/* Slideshow */
.slideshow {
width: 500px;
@arvindang
arvindang / jsbin.ajajomU.css
Created October 21, 2013 16:43
Find window height, and append section background-image height in CSS to match.
section {
margin-bottom: 40px;
}
.main {
background: url(http://img.timeinc.net/time/photoessays/2008/trees/franklin_trees_01.jpg) no-repeat center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
@arvindang
arvindang / jsbin.owOKuCuK.html
Created October 21, 2013 16:44
Use jQuery to change link copy and URL on hover.
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-git2.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<a href="http://google.com">Google</a>
@arvindang
arvindang / index.html
Last active December 29, 2015 04:59
Three way toggle
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-git2.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<!-- <a href="#">
<img class="static" src="http://placekitten.com/100/100" alt="">
@arvindang
arvindang / .bash_profile
Created February 17, 2014 15:50
Bash Profile
function reload {
source ~/.bash_profile
}
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo " *"
}
function parse_git_branch {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
@arvindang
arvindang / jsbin.wuler.css
Created April 28, 2014 19:14
Creating text with a gradient background with just CSS. Very iOS 7.
body {
padding: 10px;
}
p {
background: -webkit-linear-gradient(top,#fd0b58 0,#a32b68 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
@arvindang
arvindang / jsbin.saduz.css
Created April 29, 2014 00:09
Card hover and reveal on click.
body {
padding-top: 40px;
}
div {
height: 250px;
overflow: hidden;
width: 370px;
transition: all .2s ease-in;
margin: 0 auto;
@arvindang
arvindang / Calc() Grid System
Created December 18, 2014 20:41
Grid system using calc
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script>
.grid-box {
float: left;
@arvindang
arvindang / Sticky header using waypoint plugin
Created December 22, 2014 16:32
Sticky header using waypoint plugin
$('#opening, #film, #practical, #conference, #guide')
.waypoint(function(direction) {
// sticky header
$(this).find('> div > header').toggleClass('sticky', direction === 'down');
// nav .current
currentNav($(this).attr('id'), direction === 'down');
})
.waypoint(function(direction) {