Git Product home page Git Product logo

svg-workshop's Introduction

SVG Essentials & Animation Course Materials

Starter Materials for the SVG Animation Course

Author: Sarah Drasner

This repo houses the materials and resources for the SVG Essentials & Animation course on Frontend Masters.

Most of the materials for the course are outlined below, but there are also directories housed here of very basic examples of some of the techniques we will cover so that students don't have to spend a lot of time researching in order to get started. It is recommended that students use CodePen to create work for the duration of the course, as we'll use preprocessors like SCSS as well as Babel for ES6 and codepen makes it easy to do so without time devoted to setup. If you like, you can also scroll to the CodePen collection section and fork one of the existing pens in those collections, they are comprehensive. GreenSock pens in the collection use member's only plugins that are CodePen-safe. For MorphSVG, DrawSVG, and FindShapeIndex sections, localhost will fail and using CodePen is recommended.

Here is a URL that has all of the codepen-safe versions of the GSAP Plugins

Here is the codepen debugger chrome extension

For sections covering React-Motion, it may make more sense to use Create-React-App so that your workflow more closely mirrors development, but that decision is up to you.

Slides:

Bonus:

All slides have password svgisawesome!@

Collections:

Included in this repo are some very basic starter kits.

Part One, Section Three

There is a resource for the sprite and CSS animation SVG, should you need a starter resource. SVG Resources:

Part Three, Section Six

GreenSock Docs, Forums, and Easing Visualizer.

There are three directories you can use as GSAP starter kits:

  • vanillajs-interaction
  • basic-tween
  • basic-timeline
  • master-timeline

Part Four, Section Seven

There are a few ways to work with the GSAP timeline in this file: gsap-resources.js.

DataVis

The starter resource for this section is in the directory basic-d3. This is d3 version 4, so be wary that if you try out of the box things that exist in the d3 docs for the blocks, they might not work. (Not very many d3 blocks have been updated.) Big changes include axis and transition, new version demo-ed here.

React

There are two basic starter directories included here for React. One is basic-react-svg-css, which shows a very simple use case of a reusable SVG component animated with CSS. There is also basic-react-motion, which shows a single staggered motion animation.

Mojs

Mojs-shapes directory includes every out of the box shape that mo.js allows you to create. You can also create custom shapes (look in the mo.js codepen collection for bouncy radio demo for an example).

Mojs-tools directory shows a simple shape tween and .then() syntax with both timeline and curve-editor tools loaded in.

License

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

svg-workshop's People

Contributors

1marc avatar sdras avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

svg-workshop's Issues

The right way to make interactive SVG elements accessible?

Thank you so much for this course Sarah.

I’ve greatly appreciated the methodical way it builds up, including the focus on accessibility near the beginning. I’m currently about 2/3rds of the way through and just past the interactive demos bit, so forgive me if the following gets dealt with in the remaining hour and a half of videos.

I wondered about the keyboard accessibility of interactive elements within the svg demos, and noticed there was nothing in the 'panda factory' demo that looked like it had this covered.

A search led me to CSS Tricks’s 2016 Accessible SVGs which advocates use of an a element with appropriate xlink:href and tabindex attributes, but I’ve subsequently found Fizz Studio's 2020 Reliable and Valid SVG Accessibility which seems more thorough and up to date.

Do you have any thoughts or insights you would wish to add?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.