Open kvasnyj opened 5 years ago
Hi @kvasnyj Would you have an online link with a "live demo" to see how this new feature looks like?
Hi @josephernest, I haven't public web server yet, but I attached files to run on any web server. bigpicture.zip
Nice indeed! How would you include this feature? With a parameter, where?
I include parameters into bigpicture.js
:
const sizeOpacity1 = 10; //Maximum font size with opacity = 1
const sizeOpacity0 = 300; //Minimum font size with opacity = 0
I mean it would be interesting to have an option such that if we do that in HTML:
<body>
<div id="bigpicture-container">
<div id="bigpicture" data-zoom="1" data-x="721" data-y="480">
then it is the default version (without opacity), and if we do this in the HTML:
<body>
<div id="bigpicture-container">
<div id="bigpicture" data-zoom="1" data-x="721" data-y="480"
data-opacitymode="1">
then it enables your code.
I add two constants:
To switch off feature it is enought to set
sizeOpacity0 = 1000