badidea Posted October 29, 2022 Share Posted October 29, 2022 I want a user to click a button that takes them to a page that has a randomized image either as a background or in a single image gallery. It is used to simulate a tarot card reading. When you click the button you get a new card that tells your fortune. There are 36 possible cards. Link to comment
Beyondspace Posted October 29, 2022 Share Posted October 29, 2022 9 hours ago, badidea said: I want a user to click a button that takes them to a page that has a randomized image either as a background or in a single image gallery. It is used to simulate a tarot card reading. When you click the button you get a new card that tells your fortune. There are 36 possible cards. It means that every time when user access this special page, it will show only one random image (in total 36 cards, right? Have you consider the solution when user click on this button, it will render directly on the current page the random image? This requirement needs javascript to randomize your images. Therefore, you need at least the business plan. What is your current one? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
badidea Posted October 30, 2022 Author Share Posted October 30, 2022 11 hours ago, bangank36 said: It means that every time when user access this special page, it will show only one random image (in total 36 cards, right? Have you consider the solution when user click on this button, it will render directly on the current page the random image? This requirement needs javascript to randomize your images. Therefore, you need at least the business plan. What is your current one? Hi, yes I have the business plan on this site. And yes, displaying the card on the same page as the button would work great! I'm attaching a rough mockup. Thank you!! Link to comment
joseph81 Posted October 31, 2022 Share Posted October 31, 2022 Hi. I wrote recently a blog article about implementing a tarot card random show when clicking on a button. Maybe it helps. https://www.ui-workarounds.com/random-tarot-cards-on-a-click-of-a-button-using-svg-sprites/ badidea and tuanphan 1 1 Jozsef Kerekes - Front-end developer and Squarespace enthusiast My Blog: https://ui-workarounds.comIf you like my answer, please give me an upvote/like. Highly appreciated. Link to comment
badidea Posted November 11, 2022 Author Share Posted November 11, 2022 On 10/31/2022 at 8:46 AM, joseph81 said: Hi. I wrote recently a blog article about implementing a tarot card random show when clicking on a button. Maybe it helps. https://www.ui-workarounds.com/random-tarot-cards-on-a-click-of-a-button-using-svg-sprites/ Thanks for this! I think I got it worked out but this article is amazing! joseph81 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment