if() url doesn't work if value is coming from data attribute?

t_afif 0 11 0
Open on CodePen More by t_afif