Browse Source

change naming

master
Björn 5 years ago
parent
commit
a030bdf333
2 changed files with 7 additions and 1 deletions
  1. +1
    -1
      package.json
  2. +6
    -0
      src/TinyOnePage.riot

+ 1
- 1
package.json View File

@ -1,6 +1,6 @@
{ {
"name": "tiny-one-page", "name": "tiny-one-page",
"version": "1.0.0",
"version": "1.0.1",
"description": "One Page Menu with RiotJS, part of Tiny-Components", "description": "One Page Menu with RiotJS, part of Tiny-Components",
"scripts": { "scripts": {
"dev": "npm run development", "dev": "npm run development",


src/TinyOnePage.riot.js → src/TinyOnePage.riot View File

@ -236,6 +236,12 @@
// get result // get result
let result = undefined; let result = undefined;
if (window.pageYOffset > offset) {
this.$('body').classList.add('is-scrolling');
} else {
this.$('body').classList.remove('is-scrolling');
}
elements.forEach(function(element, index) { elements.forEach(function(element, index) {
// getting target // getting target

Loading…
Cancel
Save