<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: edi</title>
    <description>The latest articles on DEV Community by edi (@herofoxfire).</description>
    <link>https://dev.to/herofoxfire</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F853293%2F30790d9d-5c69-4041-a96c-a043d6bd180b.png</url>
      <title>DEV Community: edi</title>
      <link>https://dev.to/herofoxfire</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/herofoxfire"/>
    <language>en</language>
    <item>
      <title>Create Login &amp; Register transparent form with video background.</title>
      <dc:creator>edi</dc:creator>
      <pubDate>Mon, 25 Apr 2022 17:19:07 +0000</pubDate>
      <link>https://dev.to/herofoxfire/create-login-register-transparent-form-with-video-background-55mh</link>
      <guid>https://dev.to/herofoxfire/create-login-register-transparent-form-with-video-background-55mh</guid>
      <description>&lt;p&gt;Let's quickly create a single login and registration form in html and css &lt;/p&gt;

&lt;p&gt;In case you want to go into gradual details&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/HlV1pb4FDAA"&gt;
&lt;/iframe&gt;
.&lt;/p&gt;

&lt;p&gt;The video I use as a background I found on pixabay you can use someone of your choice.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;index.html&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;head&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;

    &amp;lt;video poster="screenshot.jpg" autoplay playsinline muted loop&amp;gt;

        &amp;lt;source src="thecity.mp4" type="video/mp4"&amp;gt;
      &amp;lt;/video&amp;gt;

    &amp;lt;div class="video"&amp;gt;
        &amp;lt;div class="form"&amp;gt;
            &amp;lt;div class="button"&amp;gt;
                &amp;lt;div id="btn"&amp;gt;&amp;lt;/div&amp;gt;
                &amp;lt;button type="button" class="toggle-btn" onclick="loginform()"&amp;gt;Log In&amp;lt;/button&amp;gt;
                &amp;lt;button type="button" class="toggle-btn" onclick="signupform()"&amp;gt;Sign Up&amp;lt;/button&amp;gt;
            &amp;lt;/div&amp;gt;



            &amp;lt;form id="loginform" class="input-group"&amp;gt;
                &amp;lt;input type="text" class="input-field" placeholder="Username" required /&amp;gt;
                &amp;lt;input type="password" class="input-field" placeholder="Password" required /&amp;gt;
                &amp;lt;p class="Fpass"&amp;gt;&amp;lt;a href="/"&amp;gt;Forgot Password&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
                &amp;lt;button type="submit" class="submit-btn"&amp;gt;Log In&amp;lt;/button&amp;gt;
            &amp;lt;/form&amp;gt;



            &amp;lt;form id="signupform" class="input-group"&amp;gt;
                &amp;lt;input type="text" class="input-field" placeholder="Username" required /&amp;gt;
                &amp;lt;input type="email" class="input-field" placeholder="E-mail" required /&amp;gt;
                &amp;lt;input type="password" class="input-field" placeholder="Password" required /&amp;gt;
                &amp;lt;button type="submit" class="submit-btn"&amp;gt;Sign Up&amp;lt;/button&amp;gt;
            &amp;lt;/form&amp;gt;
        &amp;lt;/div&amp;gt;

    &amp;lt;/div&amp;gt;

    &amp;lt;script&amp;gt;


    &amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Javascript&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script&amp;gt;
        var x = document.getElementById("loginform");
        var y = document.getElementById("signupform");
        var z = document.getElementById("btn");

        function signupform() {
            x.style.left = "-400px";
            y.style.left = "50px";
            z.style.left = "110px";
        }

        function loginform() {
            x.style.left = "50px";
            y.style.left = "450px";
            z.style.left = "0";
        }

    &amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Style.css&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;


}
video {    /* video background before known as a hero*/
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;

} 
.form {          /* invisible form here settings*/
    width: 380px;
    height: 480px;
    position: relative;
    margin: 6% auto;
    background: rgba(255, 255, 255, 0.062);  
    padding: 5px;
    overflow: hidden;
}


.button {
    width: 220px;
    margin: 35px auto;
    position: relative;
    border-radius: 30px;
}
.toggle-btn {
    padding: 10px 30px;
    cursor: pointer;
    background: transparent;
    border: 0;
    outline: none;
    position: relative;
}
#btn {
    top: 0;
    left: 0;
    position: absolute;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, #10b3ff, #06ffc9);
    border-radius: 0px;
    transition: .5s;

}

.input-group {
    top: 180px;
    position: absolute;
    width: 280px;
    transition: .5s;

}
.input-field {
    width: 100%;
    padding: 10px 0;
    margin: 5px 0;
    border-left: 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid rgb(255, 255, 255);
    outline: none;
    background: transparent;
}   


input, select, textarea {
    color: rgb(255, 255, 255);
    }

::placeholder {     /* Placeholder text color*/
    color: rgb(255, 255, 255);
    opacity: 1;



}
.submit-btn {
    width: 65%;
    cursor: pointer;
    display: block;
    margin:  50;
    background: transparent;
    border-radius: 80px;
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    color: white;
    border: solid 1px;
    border-image: linear-gradient(to left, #10b3ff, #06ffc9);
    border-image-slice: 1;
    clip-path: polygon(0 0, 12px 0, 12px 1px, 24px 1px, 24px 0, 100% 0, 100% 100%, 0 100%);

}
span {
    color: rgb(255, 255, 255);
    font-size: 12px;
    bottom: 68px;
    position: absolute;

}
#loginform {
    left: 50px;
}
#signupform {
    left: 450px;
}

.Fpass a {
    position:relative;
    text-decoration: none;
    color: rgb(42, 214, 214);
    transition:color .15s ease-in-out;
    top: 10px;

}

.Fpass a:hover {
    background-size: 100% 100%;
    cursor: pointer;

}

.Fpass a:after {
    display:block;
    content:"";
    position: absolute;
    right:0;
    left:0;
    width:100%;
    height:3px;
    opacity:0;
    transform:translateY(-150%);
    transition:transform .15s ease-in-out, opacity .15s ease-in-out;
    background-color: rgba(0, 247, 255, 0.589);

}

.Fpass a.is-active,
.Fpass a:active,
.Fpass a:focus,
.Fpass a:hover {
    color: rgba(0, 247, 255, 0.589);
}

.Fpass a.is-active:after,
.Fpass a:active:after,
.Fpass a:focus:after,
.Fpass a:hover:after {
    transform:translateY(0);
    opacity:1;
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>html</category>
      <category>css</category>
      <category>design</category>
    </item>
  </channel>
</rss>
