Skip to content

Instantly share code, notes, and snippets.

View lomteslie's full-sized avatar
⚔️

Tom Leslie lomteslie

⚔️
  • OpenFin
  • Nashville, TN
View GitHub Profile
@lomteslie
lomteslie / transition-example.scss
Last active July 7, 2020 19:48
transition-example
.class {
transition: color $transition-speed-easing; // preferred method
}
.class {
transition: opacity ($transition-speed * 2) $transition-easing; // For a slower animation
}
.class {
transition: color $transition-speed-easing, // multiple properties
@lomteslie
lomteslie / keyframes-example.scss
Created February 10, 2016 16:04
keyframes-example
@keyframes(bulge) {
0% { font-size: ms(-1) }
30% { font-size: ms(3) }
100% { font-size: ms(0) }
}
.class {
animation: bulge $transition-speed-easing infinite;
}
@lomteslie
lomteslie / apiClient.js
Created May 2, 2018 21:14
apiClient.js
import queryString from 'query-string'
import Immutable from 'seamless-immutable'
/**
* API Client
* Vision-specific client for interacting directly with the API – via these methods.
*
* @type {Object}
*/
const apiClient = {
@lomteslie
lomteslie / RestrictedRoute.js
Created August 24, 2018 17:30
RestrictedRoute.js
import PropTypes from 'prop-types';
import React from 'react';
import { hasFeature, hasPermission } from 'lib/auth';
import { Route, Redirect } from 'react-router-dom';
class RestrictedRoute extends React.Component {
static propTypes = {
component: PropTypes.func,
features: PropTypes.array,
permissions: PropTypes.array