JQuery explode fonts during an explosion, how to stop it?

Go to http://hartford.uconn.edu/scholarships/ click on any name, then click on the "close" button, which will show you that when "fonts" explode, go from default "Trebuchet MS / Trebuchet" to "Times New Roman " I tried to define the body of {font-family: "Trebuchet MS", Trebuchet;} and define other classes and change the classes of the jQuery widget, as well as define the desired font family, but nothing works. Please take a look at the source and any suggestions are appreciated.

Thank!

+3
source share
1 answer

Under the hood, the “explosion” effect actually creates several clones of what is being animated and applies effects to them. These clones are attached to the end of the root element <body>. It looks like your CSS has a font-family, defined in div #center_wrapper, which does not apply to clones, so they appear as unallocated text by default.

The font definition on bodyinstead worked for me. Did your browser cache old CSS?

+1
source

Source: https://habr.com/ru/post/1769421/


All Articles