wip on download page

This commit is contained in:
Danny Coates 2018-10-30 11:37:33 -07:00
parent 12e6eb1666
commit 26a943939d
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
11 changed files with 39 additions and 50 deletions

View file

@ -158,25 +158,6 @@ export default function(state, emitter) {
emitter.emit('password', { password, file: ownedFile });
}
state.modal = copyDialog(ownedFile.name, ownedFile.url);
state.animation = () => {
const x = document.querySelector('.foo');
const y = x.previousElementSibling;
x.animate(
[
{ transform: `translateY(-${y.getBoundingClientRect().height}px)` },
{ transform: 'translateY(0)' }
],
{
duration: 400,
easing: 'ease'
}
);
y.animate([{ opacity: 0 }, { opacity: 1 }], {
delay: 300,
duration: 100,
fill: 'both'
});
};
} catch (err) {
if (err.message === '0') {
//cancelled. do nothing