Skip to content

Instantly share code, notes, and snippets.

View markusand's full-sized avatar

Marc Vilella markusand

View GitHub Profile
@markusand
markusand / directive.scroll.css
Last active January 21, 2021 13:40
Vue.js directive to show (or animate) elements when scrolled
.scroll-show {
opacity: 0;
transition: all 0.5s ease-in-out;
}
.scroll-show-enter { opacity: 1; }
@markusand
markusand / .eslintrc.js
Last active February 11, 2019 15:13
Custom eslint rules to override some AirBnB's defaults
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-tabs': 'off',
'indent': ['error', 'tab', {
'SwitchCase': 1
}],
'max-len': ['error', {
'code': 100,
'ignoreTrailingComments': true,