Skip to content

Instantly share code, notes, and snippets.

View zebapy's full-sized avatar

Zeb Pykosz zebapy

View GitHub Profile
@zebapy
zebapy / anime-countup.js
Last active August 1, 2019 13:47
Recreate countup.js with animejs. Does not play until scroll into view. https://codepen.io/zebapy/pen/Qegeae
import anime from 'animejs';
function countup(el, target) {
let data = { count: 0 };
anime({
targets: data,
count: [0, target],
duration: 2000,
round: 1,
delay: 200,
@zebapy
zebapy / table.js
Last active November 14, 2016 03:58
import React, { Component, PropTypes } from 'react';
import cx from 'classnames';
import Icon from 'components/Icon';
import sortBy from 'lodash/sortBy';
const TableRow = ({ row, columns = [] }) => {
const styles = require('./Table.scss');
return (
<tr>
{columns.map(({ key, renderer }) => {
@zebapy
zebapy / _grid.scss
Last active August 29, 2015 14:22
sass grid
$grid-prefix: 'col' !default;
$grid-columns: 12;
$grid-gutter-width: 30px;
@if ($grid-prefix != '') {
$grid-prefix: "#{$grid-prefix}-";
}
$breakpoints: (
"xs": "",