you are viewing a single comment's thread
view the rest of the comments
[–] 12 points 9 months ago (4 children)

Don’t just override opacity with null , it will override whatever the original style was. Before setting to 30% you need to store the original value and restore that in the timeout.

  • source
  • hideshow 4 child comments
  • [–] [S] 14 points 9 months ago (3 children)

    null will actually default back to the rules coming from CSS, I use this all over the place as a pattern

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 9 months ago (2 children)

    But if the element itself already had an inline opacity value, that would be lost. 🙂

  • source
  • parent
  • hideshow 2 child comments