Animation on scroll in Blazor

Saeed Pooladzadeh 241 Reputation points
2022-03-11T16:46:29.95+00:00

Hello,

Is the possible to do "Animation on scroll" in Blazor?
It seems there is no component to achieve this.
I mean something like this site:

https://michalsnik.github.io/aos/

Regards,
Saeed

Developer technologies | .NET | Blazor
Developer technologies | C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2022-03-11T16:59:26.7+00:00

    that component would work fine with Blazer. just add the library and init to index.html. then have blazer render the attributes and use jsinterop to call .refresh() after a component render. you can also use jsinterop to have custom events call the blazer code.

    also any CSS scroll animations will work.

    https://css-tricks.com/books/greatest-css-tricks/scroll-animation/

    note: there will be many more js libraries because this is a trick done more web designers than developers.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.