Dan Burzo

Dan Burzo

Co-founder at Moqups Joined about 6 years ago

  • 6 stories
  • 24 comments
  • 55 upvotes
  • Posted to Ask DN: How do you handle retina images?, Aug 17, 2016

    Take a look at the <picture> HTML element, it's supported in most modern browsers (and there's a fallback for older versions of IE), it's a clean syntax, and it avoids downloading multiple versions of the same image.

    It also allows you to art-direct for different media queries, so you could have totally different images based on the viewport size.

    Some references: http://alistapart.com/article/using-responsive-images-nowhttps://developer.mozilla.org/en/docs/Web/HTML/Element/picture

    This is, of course, for content images. For decorative graphics that might be in your CSS, as background-image for example, media queries will do the trick, and I'm not aware of any particular methodology for handling these.

    Now, for creating two versions of the same image, most design tools nowadays have the ability to export @1x and @2x versions at the same time, so that's not too painful to manage.

    That being said, as mentioned in a previous comment, you can offload some of the work to SVG, which is a vector format that's perfect for logos, UI icons, and the such.

    Hope this helps.

    2 points
  • Posted to How to hack beautiful flourishes into your font, in reply to Conrad Irwin , Aug 16, 2016

    Yes, code in "prose" environments does tend to be handled poorly. E.g. https://medium.com/@kanyang/how-to-display-code-blocks-in-medium-687b3a14e47a (notice the curly quotes around the string)

    0 points
  • Posted to Ask DN: Designing on a Windows PC., Aug 13, 2016

    Not to toot my own horn, but you could give Moqups 2 a try :-)

    0 points
  • Posted to How to hack beautiful flourishes into your font, in reply to Cristian Tincu , Aug 12, 2016

    That's a great example! Although I'm a bit intimidated by how much it alters the text :)

    0 points
  • Posted to How to hack beautiful flourishes into your font, Aug 12, 2016

    Interesting technique! It's evident OpenType has some powerful applications. (One favorite is https://www.fontfont.com/how-to-use-ff-chartwell )

    In a real-life scenario I would, however, be a bit concerned that you're altering the underlying text into a visual representation that is not portable -- copying the text and pasting it into another context will show the original characters.

    So I would consider doing it the less glamorous well of pre-processing the text and outputting the correct characters in the first place. (Let's not go into how appropriate/ethical is to process the characters in a user's email :P)

    One great use for this technique would be in programmer's font, where you could show nice curly quote, when appropriate, around strings -- and the text underneath would still have the syntactically-correct straight quotes.

    2 points
  • Posted to How to hack beautiful flourishes into your font, in reply to Cristian Tincu , Aug 12, 2016

    You'll need to re-read the article. It entails altering OpenType features in the font itself.

    1 point
  • Posted to Show DN: Lucian Product Designer Portfolio, Aug 10, 2016

    Looks great! One small issue: in Firefox, clicking on Contact Me will open a new, blank tab.

    1 point
  • Posted to Announcing Domain Name Sanity, Aug 05, 2016

    Hi Edward, that's such a good premise for a book! Added the sample chapter to my reading list.

    1 point
  • Posted to Ask DN: Tool for downloading SVG Graphic+Animations?, in reply to Artur Maklyarevsky , Aug 01, 2016

    I'm sorry, I thought you asked for tools to download the SVG + animation code, not to build them yourself :-)

    0 points
  • Posted to Ask DN: Tool for downloading SVG Graphic+Animations?, Aug 01, 2016

    The specific animation you linked to is "animated" programatically using Tweenlite http://greensock.com/tweenlite

    It's not a declarative animation, but rather a piece of code that alters the underlying paths of the SVG. There are two groups, begin-paths for how the illustration looks in its initial state, and end-pathsfor how it looks in its expanded state, then the animation library will tween between these two sets of shapes.

    I guess you could save the SVG file and figure out how to run this code on it:

    /* * Animate the SVG headlines when in view */ var setupHeadlineAnimations = function() { $headers.each(function(index, el) { var $container = $(el); var $animateShapes = $container.find('.animate-shapes path'); var $beginShapes = $container.find('.begin-shapes path'); var $endShapes = $container.find('.end-shapes path'); if (index === 0) { setupIntroAnimation($animateShapes, $endShapes); return; } var scene = new ScrollMagic.Scene({triggerElement: el, duration: winHeight/1.5, offset:winHeight/3.5}) var timeline = new TimelineLite(); // var endShapes = direction === 'down' ? $endShapes : $beginShapes; // var completeClass = direction === 'down' ? 'animate-end' : 'animate-begin'; $animateShapes.each(function(index, el) { var elementTween = TweenLite.to($(el)[0], 1, {morphSVG:$endShapes.eq(index)[0]}) timeline.add(elementTween, 0, { align: 'start' }); }); scene.setTween(timeline); controller.addScene(scene); }); }

    As for your initial question, there are several ways of animating a SVG and I doubt there's a tool that can help you.

    1 point
Load more comments