Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
Created June 28, 2013 14:32
Show Gist options
  • Select an option

  • Save gunnarbittersmann/5885116 to your computer and use it in GitHub Desktop.

Select an option

Save gunnarbittersmann/5885116 to your computer and use it in GitHub Desktop.
Firefox bug
/**
* Firefox bug
*/
main
{
position: relative;
transition: left 1s ease-in-out;
/*
Smooth transition does not work in Firefox
without explicitly setting default value
left: 0;
*/
}
.shifted main
{
left: 10em;
}
<button id="ctrl-shift">shift</button>
<main>
<p>’Tis the main content.</p>
</main>
(function ()
{
document.getElementById('ctrl-shift').addEventListener('click', function ()
{
document.documentElement.classList.toggle('shifted');
}, false);
})();
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment