chendishen / react-live2d

在react项目里展示live2d看板娘:react-live2d
Other
78 stars 17 forks source link

How to remove modal? #8

Closed kfnx closed 2 years ago

kfnx commented 2 years ago

I want to remove modal that pop when user click live2d, is that possible? I read the readme but I don't quite understand

ElmouradiAmine commented 2 years ago

You can overwrite the css of the modal by setting the opacity to 0 or dynamically remove it using javascript. My solution was to add in my index.css the selector : #live2d-print and set the opacity to 0. The modal will be still available in the dom but not visible for the user. This is the only workaround I found.