Short duration effects flash rapidly when applied through repeating command block
When you give yourself night vision in a command block the sky starts flashing like crazy. To recreate this all you need to do is put this command in a repeating command block: /effect @s night vision 1 0 true.