You have to insert a unique DOM selector. It can be an id or a class
You can create a CSS file, add the CSS as following and link it to HTML
For that, create a js file (name anything you want), link it to HTML doc and write the following
Go right for exploring customization options
That means, as a developer you have full control
Slides' behavior can be modified by changing the config object passed while initializing the slide object
All of these options are optional
slideTime
- number (in seconds) - default = 0.5
(seconds)
autoSlide
- boolean - default = falseautoSlideInterval
- number (in seconds) - default =
5 (seconds)
You can switch between a dark theme or a light theme
For that, you need to enable a setting. After doing that you can press t on keyboard or click a button on the top right corner and switch between the 2 themes.
You can display slide numbers too by passing slideNumber value as true on config object.
You can enable zoom out view by passing zoomedOutView as true to config object
By default, Swift.JS comes with a default light theme and a dark theme. However, you can modify how it looks by modifying some CSS variables.
The variable names are self explanatory
Don't
do
this
but you can
First define the markup
Then define the CSS
With the use of this, you can define entire slides with JS
This step is the same as other steps defined on slide 3.2
Notice data
property on config object?
Markdown is like a markup language which can be compiled into HTML
Adding markdown support is easy
In the sections you plan to use markdown, add a class
markdown
on the section.