How to add vertical volume slider for my website?How to horizontally center a <div>?Vertically align text next to an image?How do I give text or an image a transparent background using CSS?How to disable text selection highlighting?How to check whether a checkbox is checked in jQuery?How to make a div 100% height of the browser window?How do I vertically align text in a div?How to disable resizable property of textarea?How to vertically align an image inside a div?How do I vertically center text with CSS?

For airliners, what prevents wing strikes on landing in bad weather?

What will be the temperature on Earth when Sun finishes its main sequence?

Can I Retrieve Email Addresses from BCC?

Simple recursive Sudoku solver

Was the picture area of a CRT a parallelogram (instead of a true rectangle)?

Are Warlocks Arcane or Divine?

Is it okay / does it make sense for another player to join a running game of Munchkin?

Is there an Impartial Brexit Deal comparison site?

I2C signal and power over long range (10meter cable)

The One-Electron Universe postulate is true - what simple change can I make to change the whole universe?

Giant Toughroad SLR 2 for 200 miles in two days, will it make it?

What to do when my ideas aren't chosen, when I strongly disagree with the chosen solution?

Can a Bard use an arcane focus?

Have I saved too much for retirement so far?

Word describing multiple paths to the same abstract outcome

Greatest common substring

Lifted its hind leg on or lifted its hind leg towards?

Golf game boilerplate

Resetting two CD4017 counters simultaneously, only one resets

Meta programming: Declare a new struct on the fly

What if somebody invests in my application?

Indicating multiple different modes of speech (fantasy language or telepathy)

Visiting the UK as unmarried couple

Can I rely on these GitHub repository files?



How to add vertical volume slider for my website?


How to horizontally center a <div>?Vertically align text next to an image?How do I give text or an image a transparent background using CSS?How to disable text selection highlighting?How to check whether a checkbox is checked in jQuery?How to make a div 100% height of the browser window?How do I vertically align text in a div?How to disable resizable property of textarea?How to vertically align an image inside a div?How do I vertically center text with CSS?













0















I have seen many horizontal volume sliders but I have not seen a proper way to make a vertical volume slider. I'm just curious. How I would go about making a vertical volume slider for my website? Something that would only appear when you hover over the volume button like on YouTube.



Here is a link to my website https://newcool.win/ (P.S f12, ctrl, etc. are disabled. So if you want to use the console you have to pull it up before it loads.) (P.P.S If the video doesn't load for you on start you will have to manually press the pause button. This is due to chrome's decision to block auto-play videos back in Chrome 66)



The .css for fas or fa-volume-up or fa-pause etc. is from https://fontawesome.com/ (if anyone is not familiar with it)



<div id="star" class="video mask overlay">
<i class="fas fa-volume-up volume-button "></i>
<i class="fas stop-button fa-pause"></i>
<div class="video-fallback"></div>
<video id="video" onloadstart="this.volume=0.2" loop="">
<source src="videos/SONG.MP4" type="video/mp4"></source>
</video>
<script>setTimeout(function()document.getElementById("video").play();, 3000);</script>


The css class for video mask overlay is just a dark overlay layer to stop the video from shining in your eyes.



 .volume-button
font-size:18px;
position:absolute;
z-index:25;
bottom:50px;
left:20px;
cursor:url(../images/cursor/red.cur),pointer;
color:#fff;

.stop-button
font-size:18px;
position:absolute;
z-index:25;
bottom:50px;
left:50px;
cursor:url(../images/cursor/red.cur),pointer;
color:#fff;

.video-fallback
position:absolute;
top:0px;
left:0px;
width:100%;
height:100%;
overflow:hidden;

video
position:fixed;
top:50%;
left:50%;
min-width:100%;
min-height:100%;
width:auto;
height:auto;
z-index:-9999;
transform:translateX(-50%) translateY(-50%);
background-size:cover;
transition:1s opacity;



$(".video").each(function() 
$(".stop-button").click(function()
$(".stop-button").toggleClass('fa-play').toggleClass('fa-pause');
var videoBG = document.getElementById("video");
if (videoBG.paused)
videoBG.play();
else
videoBG.pause();
);
$(".volume-button").click(function()
$(".volume-button").toggleClass('fa-volume-off').toggleClass('fa-volume-up');
$("video").prop('muted', !$("video").prop('muted'));
);
);


If there is anything I missed or if you need more information please let me know and I will try to provide it. (Or you can look at my site)










share|improve this question




























    0















    I have seen many horizontal volume sliders but I have not seen a proper way to make a vertical volume slider. I'm just curious. How I would go about making a vertical volume slider for my website? Something that would only appear when you hover over the volume button like on YouTube.



    Here is a link to my website https://newcool.win/ (P.S f12, ctrl, etc. are disabled. So if you want to use the console you have to pull it up before it loads.) (P.P.S If the video doesn't load for you on start you will have to manually press the pause button. This is due to chrome's decision to block auto-play videos back in Chrome 66)



    The .css for fas or fa-volume-up or fa-pause etc. is from https://fontawesome.com/ (if anyone is not familiar with it)



    <div id="star" class="video mask overlay">
    <i class="fas fa-volume-up volume-button "></i>
    <i class="fas stop-button fa-pause"></i>
    <div class="video-fallback"></div>
    <video id="video" onloadstart="this.volume=0.2" loop="">
    <source src="videos/SONG.MP4" type="video/mp4"></source>
    </video>
    <script>setTimeout(function()document.getElementById("video").play();, 3000);</script>


    The css class for video mask overlay is just a dark overlay layer to stop the video from shining in your eyes.



     .volume-button
    font-size:18px;
    position:absolute;
    z-index:25;
    bottom:50px;
    left:20px;
    cursor:url(../images/cursor/red.cur),pointer;
    color:#fff;

    .stop-button
    font-size:18px;
    position:absolute;
    z-index:25;
    bottom:50px;
    left:50px;
    cursor:url(../images/cursor/red.cur),pointer;
    color:#fff;

    .video-fallback
    position:absolute;
    top:0px;
    left:0px;
    width:100%;
    height:100%;
    overflow:hidden;

    video
    position:fixed;
    top:50%;
    left:50%;
    min-width:100%;
    min-height:100%;
    width:auto;
    height:auto;
    z-index:-9999;
    transform:translateX(-50%) translateY(-50%);
    background-size:cover;
    transition:1s opacity;



    $(".video").each(function() 
    $(".stop-button").click(function()
    $(".stop-button").toggleClass('fa-play').toggleClass('fa-pause');
    var videoBG = document.getElementById("video");
    if (videoBG.paused)
    videoBG.play();
    else
    videoBG.pause();
    );
    $(".volume-button").click(function()
    $(".volume-button").toggleClass('fa-volume-off').toggleClass('fa-volume-up');
    $("video").prop('muted', !$("video").prop('muted'));
    );
    );


    If there is anything I missed or if you need more information please let me know and I will try to provide it. (Or you can look at my site)










    share|improve this question


























      0












      0








      0








      I have seen many horizontal volume sliders but I have not seen a proper way to make a vertical volume slider. I'm just curious. How I would go about making a vertical volume slider for my website? Something that would only appear when you hover over the volume button like on YouTube.



      Here is a link to my website https://newcool.win/ (P.S f12, ctrl, etc. are disabled. So if you want to use the console you have to pull it up before it loads.) (P.P.S If the video doesn't load for you on start you will have to manually press the pause button. This is due to chrome's decision to block auto-play videos back in Chrome 66)



      The .css for fas or fa-volume-up or fa-pause etc. is from https://fontawesome.com/ (if anyone is not familiar with it)



      <div id="star" class="video mask overlay">
      <i class="fas fa-volume-up volume-button "></i>
      <i class="fas stop-button fa-pause"></i>
      <div class="video-fallback"></div>
      <video id="video" onloadstart="this.volume=0.2" loop="">
      <source src="videos/SONG.MP4" type="video/mp4"></source>
      </video>
      <script>setTimeout(function()document.getElementById("video").play();, 3000);</script>


      The css class for video mask overlay is just a dark overlay layer to stop the video from shining in your eyes.



       .volume-button
      font-size:18px;
      position:absolute;
      z-index:25;
      bottom:50px;
      left:20px;
      cursor:url(../images/cursor/red.cur),pointer;
      color:#fff;

      .stop-button
      font-size:18px;
      position:absolute;
      z-index:25;
      bottom:50px;
      left:50px;
      cursor:url(../images/cursor/red.cur),pointer;
      color:#fff;

      .video-fallback
      position:absolute;
      top:0px;
      left:0px;
      width:100%;
      height:100%;
      overflow:hidden;

      video
      position:fixed;
      top:50%;
      left:50%;
      min-width:100%;
      min-height:100%;
      width:auto;
      height:auto;
      z-index:-9999;
      transform:translateX(-50%) translateY(-50%);
      background-size:cover;
      transition:1s opacity;



      $(".video").each(function() 
      $(".stop-button").click(function()
      $(".stop-button").toggleClass('fa-play').toggleClass('fa-pause');
      var videoBG = document.getElementById("video");
      if (videoBG.paused)
      videoBG.play();
      else
      videoBG.pause();
      );
      $(".volume-button").click(function()
      $(".volume-button").toggleClass('fa-volume-off').toggleClass('fa-volume-up');
      $("video").prop('muted', !$("video").prop('muted'));
      );
      );


      If there is anything I missed or if you need more information please let me know and I will try to provide it. (Or you can look at my site)










      share|improve this question
















      I have seen many horizontal volume sliders but I have not seen a proper way to make a vertical volume slider. I'm just curious. How I would go about making a vertical volume slider for my website? Something that would only appear when you hover over the volume button like on YouTube.



      Here is a link to my website https://newcool.win/ (P.S f12, ctrl, etc. are disabled. So if you want to use the console you have to pull it up before it loads.) (P.P.S If the video doesn't load for you on start you will have to manually press the pause button. This is due to chrome's decision to block auto-play videos back in Chrome 66)



      The .css for fas or fa-volume-up or fa-pause etc. is from https://fontawesome.com/ (if anyone is not familiar with it)



      <div id="star" class="video mask overlay">
      <i class="fas fa-volume-up volume-button "></i>
      <i class="fas stop-button fa-pause"></i>
      <div class="video-fallback"></div>
      <video id="video" onloadstart="this.volume=0.2" loop="">
      <source src="videos/SONG.MP4" type="video/mp4"></source>
      </video>
      <script>setTimeout(function()document.getElementById("video").play();, 3000);</script>


      The css class for video mask overlay is just a dark overlay layer to stop the video from shining in your eyes.



       .volume-button
      font-size:18px;
      position:absolute;
      z-index:25;
      bottom:50px;
      left:20px;
      cursor:url(../images/cursor/red.cur),pointer;
      color:#fff;

      .stop-button
      font-size:18px;
      position:absolute;
      z-index:25;
      bottom:50px;
      left:50px;
      cursor:url(../images/cursor/red.cur),pointer;
      color:#fff;

      .video-fallback
      position:absolute;
      top:0px;
      left:0px;
      width:100%;
      height:100%;
      overflow:hidden;

      video
      position:fixed;
      top:50%;
      left:50%;
      min-width:100%;
      min-height:100%;
      width:auto;
      height:auto;
      z-index:-9999;
      transform:translateX(-50%) translateY(-50%);
      background-size:cover;
      transition:1s opacity;



      $(".video").each(function() 
      $(".stop-button").click(function()
      $(".stop-button").toggleClass('fa-play').toggleClass('fa-pause');
      var videoBG = document.getElementById("video");
      if (videoBG.paused)
      videoBG.play();
      else
      videoBG.pause();
      );
      $(".volume-button").click(function()
      $(".volume-button").toggleClass('fa-volume-off').toggleClass('fa-volume-up');
      $("video").prop('muted', !$("video").prop('muted'));
      );
      );


      If there is anything I missed or if you need more information please let me know and I will try to provide it. (Or you can look at my site)







      html css video slider






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 8 at 18:16







      newcool

















      asked Mar 8 at 8:16









      newcoolnewcool

      237




      237






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55059154%2fhow-to-add-vertical-volume-slider-for-my-website%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55059154%2fhow-to-add-vertical-volume-slider-for-my-website%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

          2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

          Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme