transition opacity 1 to 0 code example Example: css opacity from 0 to 1 @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }