Creates a strobe light effect by toggling between values.
Contributed by:
if (Math.floor(time % 2) == 1) {100} else {0}
Strobe Light Expression
Practical use case
Making a text layer's opacity blink between 100% and 0% every second.
Check out similar expressions
Conditional
Days Until Date Counter
Essential for creating "Countdown to Christmas" graphics, product launch timers, or event reminders in social media templates that need to remain accurate.
Ideal for video templates and automation setups with multiple aspect ratios. Ensures text always fits within the comp without needing to adjust anything manually across versions.