Skip to content

Holt-Environments/Sketchfab-Annotations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

NiceFab Script

This script allows users an easy copy/paste method to include an interactive Sketchfab view into their Nicepage projects. The annotations of the Sketchfab view can be connected to either Nicepage's internal modals that show over the whole page, or custom iframe modals that display only within the confines of the Sketchfab view.

Use this script to create nested Sketchfab views (user clicks annotation, calling a popup with another sketchfab view inside of it), and more!

To use this script:

1.  Create HTML element in Nicepage
2.  Copy and paste the contents of NiceFab_Script.html into the HTML element
3a. If using Nicepage's modals, edit the elements of annotation_modals to contain the ID's of the desired modals to be called.
3b. Else, if using custom modals, edit the elements of annotation_pages to contain the local page links of the desired sources for the popup iframes.
4.  Profit!

Currently it is not set up to use both custom modals and nicepage's modals at the same time, though this script may be updated in the future to add further functionality.

(Video coming in the future)

About

This script provides "paste and forget" sketchfab integration into Nicepage pages

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages