Skip to content

How to setup 360 spin fullscreen buttons

By Marc Bonne, Customer Success TeamUpdated

Open this page in a new chat

Short answer

The fullscreen button sits in the top-right corner of each 360 spin. To change its look, point a CSS rule on your page at a ready-made button sprite, or at your own PNG uploaded to Sirv. Move it with the .sirv-spin-button.fullscreen CSS rules, or remove it by adding ?fullscreen=false to the spin URL.

After reading this you will know

  • How to change the fullscreen buttons on a 360 spin
  • How to move them
  • How to remove fullscreen

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, as can the hint message and the loading bar.

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.

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

For white or light backgrounds:

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

For black or dark backgrounds:

Button design 1 on blackButton design 2 on blackButton design 3 on blackButton design 4 on blackButton design 5 on blackButton design 6 on blackButton design 7 on blackButton 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:

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.

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>

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 in a profile. 1. Click Edit on the profile your spins use, or click New profile.

2. Under Spin options, open Common. Turn on the switch next to “Fullscreen” and set it to “Disabled”:

Fullscreen option and its switch under Spin options > Common

3. Click Save changes. Unless it’s your Default profile, add ?profile=name to the spin URL.

Back to top