-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Hi there,
Firstly thanks for this.
Is there a way to have multiple elements targeted separately so I can have two font sizes?
eg. ELEMENT ONE
const elem = document.querySelector('.content__text');
const textEl = elem.querySelector('span.content__text-inner');
const createBlotterText = () => {
const text = new Blotter.Text(textEl.innerHTML, {
family : "Subversus,sans-serif",
weight: 400,
size : 234,
paddingLeft: 20,
paddingRight: 20,
paddingTop: 0,
paddingBottom: 0,
fill : 'white'
});
elem.removeChild(textEl);
ELEMENT TWO
const elemTwo = document.querySelector('.content__text_small');
const textElTwo = elemTwo.querySelector('span.content__text_small-inner');
const createBlotterText = () => {
const text = new Blotter.Text(textElTwo.innerHTML, {
family : "Subversus,sans-serif",
weight: 400,
size : 39,
paddingLeft: 20,
paddingRight: 20,
paddingTop: 0,
paddingBottom: 0,
fill : 'white'
});
elem.removeChild(textElTwo);
Metadata
Metadata
Assignees
Labels
No labels