Digging into View Transitions with Turbo 8 and Rails

Поделиться
HTML-код
  • Опубликовано: 27 дек 2024

Комментарии • 9

  • @wbjxfkwsklejfde34d
    @wbjxfkwsklejfde34d 5 месяцев назад

    is it possible to set the direction between pages somehow? for eg, get it to slide forward going to edit, and back when cancel?

    • @Webcrunch
      @Webcrunch  5 месяцев назад

      There are different data attributes added with Turbo you can target with CSS and do this. It's a little more involved but possible!

    • @wbjxfkwsklejfde34d
      @wbjxfkwsklejfde34d 5 месяцев назад

      @@Webcrunch ive got css targeting the direction when turbo decides its back (when you click the browser back button basicly) but i cant TELL it to go back. i was hoping i could for eg add a data attribute to a back button on the edit screen to make the turbo_visit_direction be back

  • @mikopiko
    @mikopiko 10 месяцев назад +3

    View Transitions is still Chrome only but interesting video!

  • @peaceandworld
    @peaceandworld 9 месяцев назад +1

    Hi! Is it works with Bootstrap or with Tailwind only?

    • @Webcrunch
      @Webcrunch  9 месяцев назад

      No framework required actually! Just plain old CSS should do it. 👍

  • @wakematta
    @wakematta 10 месяцев назад

    I wonder if instead of turbo we should use HTMX. (we = rails community)
    Any opinion?

    • @Webcrunch
      @Webcrunch  10 месяцев назад

      I'd look at stimulus if you haven't. It's very similar to HTMX and aspects of turbo. I suppose it depends if you're site is super simple/static versus something more full stack like Rails.

  • @jbeasley1880
    @jbeasley1880 9 месяцев назад

    *Promo sm* ✌️