How to write the animation without fcc?

Hi, I coded it by self But I failed Anyone can tell me How To make animation like this using CSS3, I’m apprentice


My first guess would be to use ::after with same content as main element but color: orange and max-width: 0 and then do max-width: 100% of ::after on hover with transition