legend css animation for mozilla