Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change opacity depence on font size #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kvasnyj
Copy link

@kvasnyj kvasnyj commented Jan 16, 2019

I add two constants:

const sizeOpacity1 = 10; //Maximum font size with opacity = 1
const sizeOpacity0 = 300;  //Minimum font size with opacity = 0

To switch off feature it is enought to set sizeOpacity0 = 1000

image

@josephernest
Copy link
Owner

Hi @kvasnyj
Would you have an online link with a "live demo" to see how this new feature looks like?

@kvasnyj
Copy link
Author

kvasnyj commented Jan 17, 2019

Hi @josephernest, I haven't public web server yet, but I attached files to run on any web server.
bigpicture.zip

@josephernest
Copy link
Owner

josephernest commented Jan 17, 2019 via email

@kvasnyj
Copy link
Author

kvasnyj commented Jan 17, 2019

I include parameters into bigpicture.js :

const sizeOpacity1 = 10; //Maximum font size with opacity = 1
const sizeOpacity0 = 300;  //Minimum font size with opacity = 0

@josephernest
Copy link
Owner

josephernest commented Jan 28, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants