i want try fullpage scrol 100vh
up vote
0
down vote
favorite
i want to try fullpage scroll 100vh on every scroll event but
its showing an error Property 'detail' and wheelDelta does not exist on type 'Event' in this line
if (e.originalEvent.detail > 0 || e.originalEvent.wheelDelta < 0)
my about.ts file are
ngOnInit()
// snapy fullpage scroll
$(document).ready(function ()
var divs = $('.mydiv');
var dir = 'up'; // wheel scroll direction
var div = 0; // current div
$(document.body).on('DOMMouseScroll mousewheel', function (e) );
$(window).resize(function ()
$('html,body').scrollTop(divs.eq(div).offset().top);
);
);
.html file are
<div class="mydiv" style="text-align:center; color:green">Gallery</div>
<div class="mydiv" style="background-color: #aaa">Page 1</div>
<div class="mydiv" style="background-color: #444">Page 2</div>
<div class="mydiv" style="background-color: blue">Page 3</div>
<div class="mydiv" style="background-color: #ccc">Page 4</div>
<div class="mydiv" style="background-color: yellow">Page 5</div>
.css file are
html, body, body>div
height:100%;
color:yellow;
javascript jquery angular6
add a comment |
up vote
0
down vote
favorite
i want to try fullpage scroll 100vh on every scroll event but
its showing an error Property 'detail' and wheelDelta does not exist on type 'Event' in this line
if (e.originalEvent.detail > 0 || e.originalEvent.wheelDelta < 0)
my about.ts file are
ngOnInit()
// snapy fullpage scroll
$(document).ready(function ()
var divs = $('.mydiv');
var dir = 'up'; // wheel scroll direction
var div = 0; // current div
$(document.body).on('DOMMouseScroll mousewheel', function (e) );
$(window).resize(function ()
$('html,body').scrollTop(divs.eq(div).offset().top);
);
);
.html file are
<div class="mydiv" style="text-align:center; color:green">Gallery</div>
<div class="mydiv" style="background-color: #aaa">Page 1</div>
<div class="mydiv" style="background-color: #444">Page 2</div>
<div class="mydiv" style="background-color: blue">Page 3</div>
<div class="mydiv" style="background-color: #ccc">Page 4</div>
<div class="mydiv" style="background-color: yellow">Page 5</div>
.css file are
html, body, body>div
height:100%;
color:yellow;
javascript jquery angular6
Is it about.js or about.ts?
– Liam Strilchuk
Nov 11 at 14:25
.ts i doing this in angular6
– Shubham Singh
Nov 11 at 14:26
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
i want to try fullpage scroll 100vh on every scroll event but
its showing an error Property 'detail' and wheelDelta does not exist on type 'Event' in this line
if (e.originalEvent.detail > 0 || e.originalEvent.wheelDelta < 0)
my about.ts file are
ngOnInit()
// snapy fullpage scroll
$(document).ready(function ()
var divs = $('.mydiv');
var dir = 'up'; // wheel scroll direction
var div = 0; // current div
$(document.body).on('DOMMouseScroll mousewheel', function (e) );
$(window).resize(function ()
$('html,body').scrollTop(divs.eq(div).offset().top);
);
);
.html file are
<div class="mydiv" style="text-align:center; color:green">Gallery</div>
<div class="mydiv" style="background-color: #aaa">Page 1</div>
<div class="mydiv" style="background-color: #444">Page 2</div>
<div class="mydiv" style="background-color: blue">Page 3</div>
<div class="mydiv" style="background-color: #ccc">Page 4</div>
<div class="mydiv" style="background-color: yellow">Page 5</div>
.css file are
html, body, body>div
height:100%;
color:yellow;
javascript jquery angular6
i want to try fullpage scroll 100vh on every scroll event but
its showing an error Property 'detail' and wheelDelta does not exist on type 'Event' in this line
if (e.originalEvent.detail > 0 || e.originalEvent.wheelDelta < 0)
my about.ts file are
ngOnInit()
// snapy fullpage scroll
$(document).ready(function ()
var divs = $('.mydiv');
var dir = 'up'; // wheel scroll direction
var div = 0; // current div
$(document.body).on('DOMMouseScroll mousewheel', function (e) );
$(window).resize(function ()
$('html,body').scrollTop(divs.eq(div).offset().top);
);
);
.html file are
<div class="mydiv" style="text-align:center; color:green">Gallery</div>
<div class="mydiv" style="background-color: #aaa">Page 1</div>
<div class="mydiv" style="background-color: #444">Page 2</div>
<div class="mydiv" style="background-color: blue">Page 3</div>
<div class="mydiv" style="background-color: #ccc">Page 4</div>
<div class="mydiv" style="background-color: yellow">Page 5</div>
.css file are
html, body, body>div
height:100%;
color:yellow;
javascript jquery angular6
javascript jquery angular6
asked Nov 11 at 14:21
Shubham Singh
167
167
Is it about.js or about.ts?
– Liam Strilchuk
Nov 11 at 14:25
.ts i doing this in angular6
– Shubham Singh
Nov 11 at 14:26
add a comment |
Is it about.js or about.ts?
– Liam Strilchuk
Nov 11 at 14:25
.ts i doing this in angular6
– Shubham Singh
Nov 11 at 14:26
Is it about.js or about.ts?
– Liam Strilchuk
Nov 11 at 14:25
Is it about.js or about.ts?
– Liam Strilchuk
Nov 11 at 14:25
.ts i doing this in angular6
– Shubham Singh
Nov 11 at 14:26
.ts i doing this in angular6
– Shubham Singh
Nov 11 at 14:26
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53249648%2fi-want-try-fullpage-scrol-100vh%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Is it about.js or about.ts?
– Liam Strilchuk
Nov 11 at 14:25
.ts i doing this in angular6
– Shubham Singh
Nov 11 at 14:26