Live data from Hacker News

Show HN: GradientMagic

gradientmagic.com

31–39 of 39 posts

Re: Show HN: GradientMagic

#31

These are awesome! Will use this on my next project! Do these work on all browsers? And how's the performance?

They should work consistently on all modern browsers except IE. As far as performance, they should be "faster" than needing to download external images. In terms of page rendering performance, I'm not completely sure. They might take more rendering time, but I've never noticed it, and it's certainly going to be faster than download time for an image (even a small one).

Re: Show HN: GradientMagic

#32
post #22

Are not these much heavier than SVG image backgrounds? I tested by putting five backgrounds into my real web project and scroll does not seem smooth anymore.

It depends on a number of factors. Some of the more complex gradients could certainly be larger than some of the SVGs you are using in terms of raw size, but I'm not sure that would affect scrolling. If you link me to your project I would be happy to take a look.

Re: Show HN: GradientMagic

#34

My current go-to resource for gradients is https://uigradients.com . One feature I'd personally appreciate is a programmatic interface for getting a list of gradients, it's handy for generating dynamic backgrounds.

uigradients is really nice, although they only have linear gradients (which look really good). I created Gradient Magic to highlight the large variety of styles and patterns that are possible.

As far as an API goes, how would you organize the input/output for dynamic backgrounds? Maybe send a style and colors, and get a random gradient of that color?

Re: Show HN: GradientMagic

#36

Hey HN! GradientMagic is a side project that I launched roughly a year ago. It’s a large gallery of unique CSS gradients. You can browse the different patterns and copy the CSS with a single click, no login required. CSS gradients are often preferable to images since they are usually much smaller and easier to manage. I would love any feedback or improvement ideas, but my real question is this: is it worth my time to…

This is delightful. I appreciate you having made this.

Re: Show HN: GradientMagic

#37
post #21
post #10

Earlier quoted context omitted.

FWIW html2canvas is pretty good for all html-screenshotty things. Might work here as well. https://html2canvas.hertzen.com/

Good as html2canvas is, these days you may get more milage creating an SVG, putting the HTML content in it as a ForeignObject, and then using the browser's ability to copy an image to a canvas with the SVG as the source. I use that technique in a very complex diagramming app I work on and it never seems to fail regardless of the HTML content. Getting fonts and external styles to work is fun but that wouldn't apply he…

Off-topic, but please tell us more about the diagramming app.

Re: Show HN: GradientMagic

#39

My current go-to resource for gradients is https://uigradients.com . One feature I'd personally appreciate is a programmatic interface for getting a list of gradients, it's handy for generating dynamic backgrounds.

uigradients is really nice, although they only have linear gradients (which look really good). I created Gradient Magic to highlight the large variety of styles and patterns that are possible. As far as an API goes, how would you organize the input/output for dynamic backgrounds? Maybe send a style and colors, and get a random gradient of that color?

Its Really Nice!!! Visit us for getting the certification in DevOps Training with low fees and Placement Guranteed.

https://devu.in/devops-certification-training-in-bangalore/

Post reply on HN