cong-min / TagCloud

☁️ 3D TagCloud.js rotating with mouse
https://cong-min.github.io/TagCloud/examples
MIT License
364 stars 93 forks source link

Issue with n.style.filter="alpha(opacity=".concat(100*o,")") in TagCloud.min.js #37

Open adrienlaveau opened 6 months ago

adrienlaveau commented 6 months ago

First of all, thanks for sharing this great work.

I am about to use TagCloud.min.js for my website, but during testing my browser sends this error Se esperaba 'none', una URL o una función de filtrado, pero se encontró 'alpha('. Error al interpretar el valor para 'filter'. Declaración rechazada English translation : Expected 'none', a URL or a filter function, but found 'alpha('. Error interpreting the value for 'filter'. Statement rejected

It seems it comes from all the lines using n.style.filter="alpha(opacity

After looking into the css "filter" properties it seems it cannot be used with Alpha. Am I missing something here ?

Also I cannot understand the difference between TagCloud.js and TagCloud.min.js Could you please tell me ? The code is a bit complex for me to understand.

Thank you

adrienlaveau commented 6 months ago

Sorry for my previous message, I think I understand my mistake. The code is as follows: itemEl.style.filter = 'alpha(opacity=0)'; --> for Internet Explorer itemEl.style.opacity = 0; --> for new browser And this is then just that firefox does not like itemEl.style.filter = 'alpha(opacity=0)'; and warns me.

For my understanding, is not it an issue from a performance point of view ?

Thanks