Skip to content

Instantly share code, notes, and snippets.

View rodwyn's full-sized avatar
💭
DRY (Don't Repeat Yourself)

Rodwyn rodwyn

💭
DRY (Don't Repeat Yourself)
View GitHub Profile
class Tab {
static readonly ACTIVE_CLASS: string = 'active';
static readonly EVENT_ACTIVE: string = 'click';
static readonly ATTR: string = 'data-tab-content-id';
public handler: HTMLAnchorElement;
public content: Element;
public swipers: NodeListOf<Element>;
public selectors: NodeListOf<Element>;
@rodwyn
rodwyn / my.css
Created December 29, 2014 14:11 — forked from anonymous/my.css
background: linear-gradient(259deg, #246655, #23e6b4);
background-size: 400% 400%;
-webkit-animation: AnimationName 17s ease infinite;
-moz-animation: AnimationName 17s ease infinite;
-o-animation: AnimationName 17s ease infinite;
animation: AnimationName 17s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:0% 45%}
    50%{background-position:100% 56%}
    100%{background-position:0% 45%}
@rodwyn
rodwyn / parallax.js
Last active August 29, 2015 14:11 — forked from hamstu/parallax.js
var ParallaxManager, ParallaxPart;
ParallaxPart = (function() {
function ParallaxPart(el) {
this.el = el;
this.speed = parseFloat(this.el.getAttribute('data-parallax-speed'));
this.maxScroll = parseInt(this.el.getAttribute('data-max-scroll'));
}
ParallaxPart.prototype.update = function(scrollY) {
@rodwyn
rodwyn / style.css
Last active August 29, 2015 14:11 — forked from hamstu/style.css
body {
background: #415a6c;
margin: 0;
font-family: 'Oswald';
}
.parallax-container {
position: fixed;
overflow: visible;
width: 100%;
height: 850px;