Commit ff10674a authored by christianrhansen's avatar christianrhansen

set up intersection-observer-directive

parent 80365d77
......@@ -19,7 +19,8 @@ module.exports = function (ctx) {
'socket',
'touch',
'vocabularies',
'window'
'window',
'intersection-observer'
],
css: [
'app.styl'
......
Subproject commit 72eecf0b99da2f7e8aff83f7b130bfe4452208f2
Subproject commit 51928ec78a1ddeb9cadc75728fb63d596a3bd393
export default ({ Vue }) => {
Vue.directive('intersection-observer', {
inserted: function (el) {
el.style.backgroundColor = 'green'
}
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment