How to customize the fullscreen spin buttons

On this page

The fullscreen enlarge button for 360 spins is displayed in the top-right corner of Sirv spins. The design and size of buttons can be changed with CSS.

The standard fullscreen buttons (enter and exit) exist as one single PNG image (a sprite). They look like this:

Fullscreen button set

The larger images are shown on mobile devices, for easy tapping. The smaller images are shown on desktops.

Predesigned buttons

Choose your preferred button style below or create your own design (see below).

Button design 1 on white
Button design 2 on white
Button design 3 on white
Button design 4 on white
Button design 5 on white
Button design 6 on white
Button design 7 on white
Button design 8 on white
Button design 1 on black
Button design 2 on black
Button design 3 on black
Button design 4 on black
Button design 5 on black
Button design 6 on black
Button design 7 on black
Button design 8 on black

Let's say you want to use these round buttons:

Fullscreen button set - alternative

Get the URL of that image sprite and specify it in some CSS on your page:

<style type="text/css">
  .sirv-spin-button.fullscreen, .sirv-spin-button.fullscreen-exit {
    background-image: url("https://scripts.sirv.com/spin/graphics/buttons08.png");
  }
</style>

The spin with round buttons will look like this:

Design your own buttons

Alternatively, you can design your own buttons.

1. Either design your buttons as a single PNG sprite (recommended) or create them as individual open/close buttons.

2. Upload your PNG(s) to your Sirv account.

3. Add the following CSS rules to your HTML page to apply your new buttons:

<style type="text/css">
  .sirv-spin-button.fullscreen { 
    /* Here's the URL of your fullscreen open PNG button: */
    background-image: url("https://youraccount.sirv.com/your-new-fullscreen-button.png");
    /* If your button is a sprite, you may need to adjust its position: */
    background-position: 0 0 !important;
  }
  .sirv-spin-button.fullscreen-exit {
    /* Here's the URL of your fullscreen close PNG button: */
    background-image: url("https://youraccount.sirv.com/your-new-close-button.png");
    /* If your button is a sprite, you may need to adjust its position: */
    background-position: 0 0 !important;
  }
</style>

Generally, the only code you need to change is the location of your PNGs in your Sirv account. If you need help, email the Sirv support team.

Change the button location

To move the buttons from the top right corner to another location, change the values of the .sirv-spin-button.fullscreen and .sirv-spin-button.fullscreen-exit CSS selectors. For example, this CSS will move the button to the bottom left of the spin:

<style type="text/css">
    .sirv-spin-button.fullscreen,
    .sirv-spin-button.fullscreen-exit {
        top: auto;
        bottom: 15px;
        left: 15px;
    }
</style>

Remove fullscreen button

To hide the fullscreen button (and disable fullscreen), simply append ?fullscreen=false to the spin URL. For example:

https://demo.sirv.com/drill/drill.spin?fullscreen=false

Alternatively, you can disable it from the profile settings or spin file settings.

1. Right-click a spin file and choose Customize:

Customize spin settings

2. Set fullscreen to disabled:

Disable fullscreen mode

3. Click Save.

Was this article helpful?

Get help from a Sirv expert

help ukraine help ukraine Powered by Ukrainian determination and British ingenuity

How can you support Ukraine