UNPKG

vanilla-hamburger

Version:

A tiny framework agnostic hamburger button element for modern web apps

20 lines 577 B
import { Burger } from './burger.js'; import { props, update } from '../internals'; export class DirectionBurger extends Burger { static get observedAttributes() { return super.observedAttributes.concat('direction'); } /** * The animation direction of the icon, left or right. * @type {'left' | 'right'} * @default left */ get direction() { return this[props].direction; } set direction(distance) { this[props].direction = distance; this[update](); } } //# sourceMappingURL=direction-burger.js.map