项目作者: AXeL-dev

项目描述 :
Riot slideshow components
高级语言: HTML
项目地址: git://github.com/AXeL-dev/riot-presents.git
创建时间: 2019-03-30T12:50:16Z
项目社区:https://github.com/AXeL-dev/riot-presents

开源协议:MIT License

下载


Riot Presents

A Riot slideshow components to create HTML presentations inspired by react-presents & Slidr.

View Demo

Example Usage

To setup your own slides you only need to modify the slides.js file & fill up the slides array with your data like so:

  1. var slides = [];
  2. slides.push({
  3. title: 'Slide Title',
  4. content: 'Some text or HTML content or expressions { expressions.text }',
  5. class: 'white-color', // Any CSS class(es) that should be applied to the slide container
  6. style: `
  7. :scope {
  8. background-color: dark;
  9. }
  10. .white-color {
  11. color: white;
  12. }
  13. `, // custom CSS will work only on the elements inside the slide
  14. expressions: {
  15. text: 'This is inserted with an expression'
  16. } // expressions is a simple object used to fill Riot JS expressions
  17. });

That’s it!

Note: you can merge all the tag files into one file/component to simplify the inclusion of riot-presents into your projects.

Contributing

Read contributing guidelines.

License

riot-presents is licensed under the MIT license.