Skip to content

Change opacity depence on font size#20

Open
kvasnyj wants to merge 1 commit into
josephernest:masterfrom
kvasnyj:feature/opacity
Open

Change opacity depence on font size#20
kvasnyj wants to merge 1 commit into
josephernest:masterfrom
kvasnyj:feature/opacity

Conversation

@kvasnyj

@kvasnyj kvasnyj commented Jan 16, 2019

Copy link
Copy Markdown

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
Copy Markdown
Owner

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

@kvasnyj

kvasnyj commented Jan 17, 2019

Copy link
Copy Markdown
Author

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

@josephernest

josephernest commented Jan 17, 2019 via email

Copy link
Copy Markdown
Owner

@kvasnyj

kvasnyj commented Jan 17, 2019

Copy link
Copy Markdown
Author

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

josephernest commented Jan 28, 2019 via email

Copy link
Copy Markdown
Owner

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