aral, to web
@aral@mastodon.ar.al avatar

This is a very neat trick to unset max-height when an HTML element with resize='vertical' set in CSS is resized. So you can have elements initially displayed with a max-height but then resized beyond it:

https://stackoverflow.com/a/60286469

(Should work as is for resize='block' and with the selector tweaked to use "width" for horizontal/inline.)

#web #dev #tip #CSS #resize #maxHeight

burritojustice, to random
@burritojustice@mastodon.social avatar

gifclipse (photos via @dscovr_epic)

video/mp4

jwz,
@jwz@mastodon.social avatar

@burritojustice The delay value associated with a GIF frame is after the frame, but that's not how MPEG timing works. So when converting from GIF to video you have to duplicate frame 0 as frame N with delay 0.

It also doesn't help that GIF measures that delay in 1/100th sec, which cannot represent normal frame rates of 1/30th or 1/60th sec as an integer.

My resize.pl handles this properly: https://www.jwz.org/hacks/#resize

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • khanakhh
  • mdbf
  • InstantRegret
  • Durango
  • Youngstown
  • rosin
  • slotface
  • thenastyranch
  • osvaldo12
  • ngwrru68w68
  • kavyap
  • cisconetworking
  • DreamBathrooms
  • megavids
  • magazineikmin
  • cubers
  • vwfavf
  • modclub
  • everett
  • ethstaker
  • Leos
  • tacticalgear
  • normalnudes
  • tester
  • GTA5RPClips
  • anitta
  • JUstTest
  • All magazines