Pricing Blog

Solution for JavaScript where CSS can't

  • uunicode-1275762484132708395

    unicodes

    1 year ago

    I'm looking for a solution in Toddle for that situations where CSS can't work.
    For example if we want to work with a scrollbar and make it visible if the condition of overflow (max height achieved) is true and if we are scrolling or if we are hovering with the mouse the scrollbar position, could be done with JavaScript. What would you recommend for toddle?

    I'm hiding it with scrollbar-width: none, but showing it in some conditions is the issue i'm facing.

    Also what solution you use for ::webkit?
    example:

    .scrollable::-webkit-scrollbar {
    width: 0;
    height: 0;
    }
    1275762484338495568-Screenshot_2024-08-21_at_13.07.08.png