Hi all, I need help with two things I’m trying to achieve with my quote machine. Codepen link attached at the bottom of this post. Here’s what I’m trying to fix:
I have found a function on StackOverflow that will allow me to resize the quote’s font based on string length - this is a feature I want as I would like to prevent the container from resizing too drastically for longer strings, and I also don’t want to give the container a forced height. The code isn’t working at the moment… anyone who could take a look at that for me, or even suggest a better way for me to approach writing a function to achieve this, you’d be doing me a massive favour.
Here’s the codepen. The site has been down for a bit today so I’m hoping you can take a look before it’s down again. http://codepen.io/newplasticideas/pen/WjebyQ?editors=0110