The story
Uncertain; perhaps from North Germanic (compare Old Norse hvima (“to let the eyes wander”), Norwegian kvima (“to flutter”)), but in any case ultimately sound-symbolic/a fanciful reduplication (compare flim-flam).
Etymology from Wiktionary, CC BY-SA 4.0.