5 Angular Animations Examples - Learn BrowserAnimationsModule in Angular

Поділитися
Вставка
  • Опубліковано 26 лип 2024
  • Learn Angular animations functionality by 5 Angular animations examples. You can't solve all problems with CSS animations because you need to mix Javascript logic with CSS animations. In Angular we can do that with BrowserAnimationsModule. In this video we will look on different ways to use angular animations with trigger, transition, animate, states and much more. We will also talk about enter, leave, void and in states in Angular animations.
    TIMESTAMPS
    0:00 Angular animations vs Css Animations
    1:07 Installing BrowserAnimationsModule & Basic Angular animations
    6:55 States in Angular animations
    11:57 Wild cards in Angular animations
    13:01 Angular Animations callbacks
    15:16 Void state in Angular animations
    ► CHECK MY COURSES - monsterlessons-academy.com/co...
    FOLLOW ME
    ► TWITTER - / monster_lessons
    REFERENCES
    ► Source code - github.com/monsterlessonsacad...

КОМЕНТАРІ • 65

  • @jeffnikelson5824
    @jeffnikelson5824 2 роки тому +9

    Im working with angular for 2 years now (self thaught) and this is the most accurate animations guide I have seen in this whole time
    +1 subscriber

  • @ugochukwuumerie6378
    @ugochukwuumerie6378 2 роки тому +2

    Great content. Always wanted a comprehensive tutorial on Angular animation. Thanks

  • @lisaliza6428
    @lisaliza6428 2 роки тому +2

    I just wanted to animate one of my learning projects. This video is so in time!
    Thanks)

  • @ovuokeaghwotu2389
    @ovuokeaghwotu2389 5 місяців тому

    Finally, I learnt Angular animations with this video and immediately implemented it in my project. Thank you for sharing!

  • @BrookeBond_Tea
    @BrookeBond_Tea Рік тому +1

    Your accent is really good to understand to non native speakers

  • @patrickbrown5141
    @patrickbrown5141 2 роки тому

    great video, very informative. thanks

  • @deanhantzis9630
    @deanhantzis9630 Рік тому

    Superb tutorial on Angular animations. Thanks

  • @oumarba7505
    @oumarba7505 11 місяців тому

    Thank you, your videos help me a lot 🙂

  • @Santhorus
    @Santhorus Рік тому

    great explanations!

  • @beeeeeee42333
    @beeeeeee42333 2 роки тому +1

    explanation with examples + tips n tricks , perfection

  • @madipta
    @madipta Рік тому

    this sounds like a mob teaching angular,, turned out very good video,, LIKE

  • @maximilyukhin5454
    @maximilyukhin5454 Рік тому

    Thanks a lot!

  • @markusmachel397
    @markusmachel397 Рік тому

    WoooW.... I didnt know that you could do this

  • @hiteshsuthar1097
    @hiteshsuthar1097 Рік тому +1

    Thanks

  • @user-hd8dm5ur3i
    @user-hd8dm5ur3i Рік тому +1

    Great! Could you create second part to describe params for animations and maybe somwthing else?

  • @tonyross2947
    @tonyross2947 Рік тому +4

    Great video and great explanations. At 17:37, your fade-in didn't work - the element simply appeared. Fade-out worked fine. If you look at the code at 17:22, the void => * transition should be an ease-in, shouldn't it (line 1, but the line numbers are confusing).

  • @pashabiceps95
    @pashabiceps95 4 дні тому

    What is the point of V2. The element is not removed from the Dom, so the animation can be done through css

  • @aporti5019
    @aporti5019 Рік тому

    Bro good video 🔥🔥

  • @henrik3098
    @henrik3098 Рік тому

    thanks bro

  • @kuldeepbhatt8475
    @kuldeepbhatt8475 2 роки тому

    Just Brilliant. I have a suggestion if you can make video about how to insert google maps or any maps for angular.

  • @robertkylethomas173
    @robertkylethomas173 8 місяців тому +1

    If you did a follow up with route animations that would be awesome please mate

  • @tocw86
    @tocw86 9 місяців тому +1

    Hey
    I think that last example you have little bug ;-)
    shouldn't it be like this:
    ` transition('void => *', [style({ opacity: 0 }), animate('1s ease-in')]), //enter`
    `transition('* => void', [animate('1s ease-out'), style({ opacity: 0 })]), //leave`
    Am i right ?

  • @BannisterNicholas
    @BannisterNicholas Рік тому

    Curious, if this is anyway more performant if you just put a class on it? In Angular1 the isShown value would trigger the class to fade in, no extra code needed. just the boolean, the css and the ng-class on the target. the callback called from the watcher of the isShown.

  • @j.k24
    @j.k24 Рік тому

    if a user menu is beeing created and destroyed, should i make a decision to use angular animations? or rewrite the menu to just display none and use css visibility for animate the opacity?

  • @almirh
    @almirh 11 місяців тому

    Can this Animation be reusable like shared component? Great vid! Thx!

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  11 місяців тому +1

      Of course. If it is just const property you can export transition from anywhere

  • @Gyver4000
    @Gyver4000 7 місяців тому

    hello, thanks for your tutorial , it is very interesting,
    Question : is thre a relation between isShown(boolean) and FadeIn / Fadeout Please ?

  • @mayuripandey4402
    @mayuripandey4402 2 роки тому

    Can you provide crash course onMobx franework and Ant Design ? just like typescript course ?

  • @josuesuarez205
    @josuesuarez205 8 місяців тому

    The second option is not accessible for screen readers, they will still able to read the div content if you just hide it using opacity

  • @LukeAvedon
    @LukeAvedon Рік тому

    OK first 30 seconds and my mind was already blown. I thought Angular Animations used the Web Animatons API, therefore as performant as CSS Animations? if not more so. Ack! am I all confused?
    (Love your paid interview prep course by the way)

  • @val-do
    @val-do Рік тому

    what is your text editor ?

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  Рік тому +1

      It's vim. here is my video about it ua-cam.com/video/YrLiugDhCuk/v-deo.html

  • @mrborisak
    @mrborisak Рік тому

    what is the IDE you're using?

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  Рік тому

      It's Vim. Here is my video about that
      ua-cam.com/video/YrLiugDhCuk/v-deo.html

  • @poh9044
    @poh9044 10 місяців тому

    How to fix :leave animation not working when the component is being destroyed? The most relevant answer was from StackOverflow and the answer said to use hostbindings, but that bleeds out to the whole component which is not ideal for a modal transition.
    Updated: I fixed it using settimeout plus ngIf, but ideally it should automatically do that onDestroy

  • @alexflatiz8120
    @alexflatiz8120 3 місяці тому

    thanks a lot, but you are Russian, right? Почему на русском не преподаете?)