Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Allowning custimization of fade-out transition by attribute #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
paper-button {
margin: 20px;
}

</style>

</head>
Expand All @@ -51,13 +50,20 @@

<paper-button raised onclick="document.querySelector('#toast3').show()">Send Message</paper-button>

<br/>

<paper-button raised onclick="document.querySelector('#toast4').show()">Fade out top</paper-button>

<paper-toast id="toast1" text="Your draft has been discarded."></paper-toast>

<paper-toast id="toast2" role="alert" text="Connection timed out. Showing limited messages.">
<div style="color: #eeff41;" onclick="console.log('RETRY')">Retry</div>
</paper-toast>

<paper-toast id="toast3" class="capsule" text="Message sent" style="padding-right: 60px;"></paper-toast>


<paper-toast id="toast4" class="capsule" transition="core-transition-top" text="Fading to the top" style="top: 20px;max-height: 40px;"></paper-toast>


</body>
</html>
Loading