Socket
Socket
Sign inDemoInstall

svelte-intro.js

Package Overview
Dependencies
21
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    svelte-intro.js

introjs library for svelte


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
6.80 kB
Created
Weekly downloads
 

Readme

Source

svelte-intro.js

npm NPM GitHub top language npm

Installation

$ npm i svelte-intro.js --save-dev

Example 1

Hello World!

<script >
	import IntroJs from "$lib/intro-js.svelte";
</script>

<IntroJs>
    <div data-title="Welcome!" data-intro="Hello World! 👋" class="card-demo">
        <div class="card shadow--md">
          <div class="card__image" data-intro="Intro.js can highlight on elements">
            <img src="https://fakeimg.pl/300/" alt="Image alt text" title="Logo Title Text 1" />
          </div>
          <div class="card__body" data-title="Farewell!" data-intro="And this is the last step!">
            <h4>Quaco Lighthouse</h4>
            <small>
              The Quaco Head Lighthouse is a well maintained lighthouse close to St.
              Martins. It is a short, beautiful walk to the lighthouse along the
              seashore.
            </small>
          </div>
        </div>
      </div>
</IntroJs>

Example 2

JSON configuration

<script >
	import IntroJs from "$lib/intro-js.svelte";
  let options = {
    steps: [{
        title: 'Welcome',
        intro: 'Hello World! 👋json'
      },
      {
        selector: '.card-demo',
        intro: 'This step focuses on an image json'
      },
      {
        title: 'Farewell!',           
        selector: '.card__image',
        intro: 'And this is our final step! json'
      }]
    };
</script>
<IntroJs {options}>
    <div data-title="Welcome!" data-intro="Hello World! 👋" class="card-demo">
        <div class="card shadow--md">
          <div class="card__image" data-intro="Intro.js can highlight on elements">
            <img src="https://fakeimg.pl/300/" alt="Image alt text" title="Logo Title Text 1" />
          </div>
          <div class="card__body" data-title="Farewell!" data-intro="And this is the last step!">
            <h4>Quaco Lighthouse</h4>
            <small>
              The Quaco Head Lighthouse is a well maintained lighthouse close to St.
              Martins. It is a short, beautiful walk to the lighthouse along the
              seashore.
            </small>
          </div>
        </div>
      </div>
</IntroJs>

For introjs documentation and more examples You can visit introjs

Author

Emrullah TUNCAY

License

MIT

Keywords

FAQs

Last updated on 15 Nov 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc