Skip to content

Switch the reactivity/proxies CodePen to the Vue account #919

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

Merged
merged 1 commit into from
Mar 2, 2021

Conversation

skirtles-code
Copy link
Contributor

Fixes #761.

I've migrated this CodePen to the main Vue account, fixing a couple of problems in the process.

Previously, clicking the green Replay button at the end would fail (see #761). This attempted to reload the iframe, which for various reasons doesn't work. I tried some direct replacements but none of those seemed any better.

Instead I tweaked the code to perform a manual reset. Most of the code was already wrapped in functions but I wrapped the remaining code in a function called init. I also grabbed the initial innerHTML for the main content. Clicking the Replay button now sets the innerHTML back to its initial value before rerunning all the same functions that are run when the page first loads.

I also adjusted one of the CSS height values from 400px to 320px. Previously I was seeing a vertical scrollbar for this example and reducing that value seems to be enough to get rid of it. The animation itself should be unaffected as the extra space was empty.

@NataliaTepluhina NataliaTepluhina merged commit d941acd into vuejs:master Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Codepen changed license for SpliText plugin
2 participants