Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@daviddarnes daviddarnes released this 18 Sep 08:37
6dbeb60

Features and fixes

  • You can now use CSS state selectors to target elements when audio or video is playing, using :state(playing)
  • audio or video and is-playing will no longer have a playing on any of the elements, preventing DOM manipulation and bumping performance slightly. Unless…
  • Multiple audio and video elements with ids within is-playing will cause the playing attribute to be applied, which will reveal the playing element
  • Fixes issue with multiple elements playing, state will be removed once the last playing element stops
  • Demos have been updated to reflect changes

Breaking changes

As mentioned before, audio, video and is-playing itself will no longer have a playing attribute applied. You'll need to select the element using :state(playing) which will be applied to the is-playing element. playing attribute will only be applied if there are multiple audio and video elements with ids applied, which will result in the is-playing element having a playing applied containing the value of the last played elements id