Splash Screen element for Polymer v2
This element DOES NOT works with Polymer 1.x
The 1.x version will be available soon
Here is how to use the <splash-screen> element
<splash-screen align="middle" show="true" background-style="#432" destroy="false">
<img src="images/manifest/icon-48x48.png" class="center-aligned" slot="logo" alt="">
<div slot="content">
<!---Your custom html--->
</div>
</splash-screen>
This is a boolean flag to cancel the splashcreen activity. Default true
If you are planning to reuse the splashcreen, set this flag as false. Otherwise the element is destroyed. Default false
This flag accepts both hex strings, url() & default material color variables. Default white
This flag allows you to position your content of splashscreen in different positions. Here are the allowed values
<splash-screen> element is composed using specific slots inside the element. Here are the slot names allowed
logo- To set the logo imagecontent- Here you can set the content that follows the logo
$ polymer serve
$ polymer test
Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.
- Add a slot for introducing custom dynamic background like
<canvas>based animations - Add custom animation behaviour to entire splash screen content (logo and content)
- Introduce spinner slots with custom positioning