Skip to content

Instantly share code, notes, and snippets.

yuijim / simple-slider.js
Created Jun 5, 2018
Very simple (and not-quite-complete) slider
View simple-slider.js
export default class SimpleSlider {
constructor(container, options) {
this.options = options;
this.autoInterval =;
this.visible = options.visible;
this.classes = options.classes;
this.selectors = options.selectors;
this.container = container;
yuijim / fade-toggle.less
Last active Aug 29, 2015
Example of how to pass selectors to a mixin in LESS
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;
You can’t perform that action at this time.