a guest May 24th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- // if you have a flex aligned child which is absolutely positioned (but all side kept auto)
- // changing it's content won't refresh it's aligned position. Here's how you can force the refresh:
- child.style.position = 'relative'
- child.style.position = ''
- // changing position instead of display property keeps transitions alive
RAW Paste Data