Spring-operated mechanism