DEV Community

Discussion on: Vanilla JS SlideDown/Up

Collapse
 
jchibbard profile image
James Hibbard • Edited

Might be because you are running in strict mode?
Try changing to void target.offsetHeight; see if that helps.
Ref.: css-tricks.com/restart-css-animation/

Collapse
 
pyrobri profile image
Brian

adding void just creates another linting issue asking to:
Remove this use of the "void" operator. (javascript:S3735)