26 AnswersNew Answer
26 AnswersNew Answer
It is not a problem to add someone's code if you have permission to do so. The menu from the first example is a very nice classic side navigation menu with pushes the page content to the right and "hamburger" icon animations as close button. It is easy to make. But, do you have a concept (idea) what's next? Do you want active menu, or not? And so on... I think you should not change your code, but create a new one - with the same purpose but with another design. What you think about it?
@SlimikCs I'm honored, but credit is not needed, it's a pleasure if I can help to you.
@SlimikCs I think you have a mistake in css (style). After setting the attribute for the body, you have two braces } } instead of one }
Unfortunately, autoplay is not possible on mobile browers or calling the play() function with events like onload, onmouseover, onfocus... It is only possible call the play() function with real click function. On desktop browser autoplay is work fine. It's not an optimal solution, but see if you like the correction of your code .... Note: Please let me know when I can delete this code from my box (because this is your code, not mine :) ) https://code.sololearn.com/WAp5iZ8Z7cuw/#html
Do you put the loop right behind autoplay in the audio tag?
<audio id="audio" src="https://padletuploads.blob.core.windows.net/prod/155875637/1fb573d4ef5dab656bf22559c16461b4/Hay_Day_Music__Halloween_.mp3" preload="auto" autoplay loop></audio>
I have to go, but I'll be back in 3-4 hours
audio tag autoplay
audio loop attribute
upload to playground, so we can help u easily
@LukArToDo Thanks, but can you please add the player(like before) for phone users and add loop pls? :) And can i add You to credits? OR BETTER... do you want colaborate?
Why the "center" tag which is almost everywhere doesn't work? If I'm watching the code on phone half of the tables doesn't have the black backround, how to fix it?
You can hide/delete the code, I copied it and add you in the credits :)
I found out your script works on my Android 7 too :)
Audio can play in background only after user interaction like click...Checkout this code.. https://code.sololearn.com/WOi14of2X8Rx/?ref=app
And how to add background music?
<audio controls autoplay> <source src="your mp3 here"type="audio/mpeg"> Your browser does not support the audio element. </audio>
Should I put URL in here?
And how to set loop?
SoloLearn Inc.4 Embarcadero Center, Suite 1455
Send us a message