benwiley4000 / react-gif-player

📽 A GIF component that moves when YOU want it to!
https://benwiley4000.github.io/react-gif-player/
MIT License
94 stars 32 forks source link

GifPlayer doesn't allow to give className to img tag. #22

Closed Ashviniv closed 6 years ago

Ashviniv commented 6 years ago

I am trying to assign a className to the img tag used in GifPlayer using className attribute on img tag. But, it is not getting applied. Following code I used:

<GifPlayer gif={awsGIF} autoplay={true} className="img-fluid aws-gif" />

Please correct me, if I am doing anything wrong.

benwiley4000 commented 6 years ago

@Ashviniv you're doing nothing wrong! Thanks for flagging this. :slightly_smiling_face: Looks like I accidentally removed the line that passes props through to the img tag when I released v0.3.0. I'll add it back... momentarily...

benwiley4000 commented 6 years ago

@Ashviniv I've released v0.4.1. Let me know if that works for you.

benwiley4000 commented 6 years ago

Closing this for now since there's been no response, and I'm fairly certain the issue is solved. Let me know if you have any concerns! :slightly_smiling_face: