logic block show / hide elements for mobile
Posted: Thu Oct 26, 2017 12:30 pm
Hi all,
I’ve completed a complex tour of 3 x separate apartments – using tags to show / hide each apartment.
www.360imagery.co.uk/draft/bow_square_complete
Each tour includes a floor plan which I only want to show for tablet / desktop – so I’m using a logic block to hide the floor plan elements when the player width is less than 320 pixels wide for mobile. This theory works fine with a single apartment, but I’m using a splash start screen to choose apartments to view, and the trigger ‘mouse click’ is to hide the splash screen, and display the ‘view floor plan’ button. But what I need is a logic block to this action – i.e. only show the ‘view floor plan’ button if player width is more than 320 pixels wide (or keep hidden if less than 320px). Make sense?
At the moment the logic block works fine on desktop shrinking / expanding browser manually, but on mobile the action of mouse click a ‘view apartment’ button on the start splash screen loads the corresponding ‘view floor plan’ button automatically.
Any ideas?
Stu
I’ve completed a complex tour of 3 x separate apartments – using tags to show / hide each apartment.
www.360imagery.co.uk/draft/bow_square_complete
Each tour includes a floor plan which I only want to show for tablet / desktop – so I’m using a logic block to hide the floor plan elements when the player width is less than 320 pixels wide for mobile. This theory works fine with a single apartment, but I’m using a splash start screen to choose apartments to view, and the trigger ‘mouse click’ is to hide the splash screen, and display the ‘view floor plan’ button. But what I need is a logic block to this action – i.e. only show the ‘view floor plan’ button if player width is more than 320 pixels wide (or keep hidden if less than 320px). Make sense?
At the moment the logic block works fine on desktop shrinking / expanding browser manually, but on mobile the action of mouse click a ‘view apartment’ button on the start splash screen loads the corresponding ‘view floor plan’ button automatically.
Any ideas?
Stu