Skip to content

Commit

Permalink
passive listener and some mobile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jesvijonathan committed Apr 12, 2023
1 parent 2f0ec0e commit 4865aa9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/jos.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ let jos_default_animation = "fade"; // fade, slide, zoom, rotate
let jos_default_timingFunction = "ease-in-out"; // ease-in-out, ease-in, ease-out, linear
let jos_default_threshold = 0; // 0-1 | higher value for mobile and lower for desktop
let jos_default_duration = 0.4;
let jos_rootMargin_top = "-10%";
let jos_rootMargin_bottom = "-50%";
let jos_rootMargin_top = "-10%"; //recommended value 10% to -30%
let jos_rootMargin_bottom = "-40%"; //recommended value -10% to -60%
let jos_default_type = "linear";

let jos_default_intersectionRatio = intersectionRatio_set(); //0-0.99
Expand Down
11 changes: 8 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ footer {
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2vw;
margin-top: 8vw;
padding: 6vw;
}

.demo-container {
Expand Down Expand Up @@ -100,7 +101,7 @@ footer {
width: 0;
opacity: 0;
display: flex;
width: fit-content;
width: 0;
flex-direction: column;
align-content: center;
justify-content: center;
Expand All @@ -124,13 +125,14 @@ pre {
@media screen and (max-width: 1000px) {
.demo-container {
flex-direction: column;
margin: 4vw;
margin: 2em;
}
.demo-name {
flex-direction: column;
}
.demo-text {
margin-left: 0;
/* font-size: 1.5em; */
}
.demo-code {
margin-left: 0;
Expand All @@ -152,4 +154,7 @@ pre {
overflow-y: scroll;
width: auto;
}
.demo-code::-webkit-scrollbar {
width: 0.5em;
}
}

0 comments on commit 4865aa9

Please sign in to comment.