Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open in codepen/jsfiddle links #3

Open
khawkins98 opened this issue Jun 21, 2017 · 1 comment
Open

Open in codepen/jsfiddle links #3

khawkins98 opened this issue Jun 21, 2017 · 1 comment

Comments

@khawkins98
Copy link
Contributor

On the new Style Lab we show a pattern's code beneath the example. That's great, but it'd be even better if you could open that code in Codepen (or similar) and then muck about with it.

At Mozilla's docs you can do just that:
image
Source: https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient#Examples

I won't get to this for a while, so if anyone else wants to investigate how to do this (a quick google didn't turn up the API syntax).

@khawkins98
Copy link
Contributor Author

Documentation to do this: https://blog.codepen.io/documentation/api/prefill/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant