Instantly share code, notes, and snippets.

View simple-slider.js
export default class SimpleSlider {
constructor(container, options) {
this.options = options;
this.autoInterval = options.auto;
this.visible = options.visible;
this.classes = options.classes;
this.selectors = options.selectors;
this.container = container;
View fade-toggle.less
.fade-toggle (@openSelector: ~'.open'; @inTransitionClassName: ~'transition-helper'; @openRight: 0; @zIndex: 1) {
.transition(opacity .25s ease-in-out);
position: absolute;
left: -9999em;
z-index: @zIndex;
opacity: 0;
@rls: {
left: 0;
right: @openRight;