Shopify themes, liquid, logos, and UX
Hi guys,
Website: seraneeva.com
I've been stuck on this for a while. How can I add the same animation effect when a user's clicks into the "Email" section of the newsletter as gucci's? The word "Email" gets smaller, moves above the cursor, and changes to white. Pic for reference:
Solved! Go to the solution
This is an accepted solution.
Hi @flammagreg,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file footer-main.liquid
Step 3: Find "newsletter-footer_form" and inside "input-group" replace to this code:
<label for="Email" class="hidden-label">Email</label>
<input type="email" value="{% if customer %}{{ customer.email }}{% endif %}" placeholder="{{ 'general.newsletter_form.newsletter_email' | t }}" name="contact[email]" id="Email" class="input-group-field footer-email-input" aria-label="{{ 'general.newsletter_form.newsletter_email' | t }}">
<input type="hidden" name="contact[tags]" value="newsletter">
<span>
<button type="submit" class="btn footer-email-submit" name="subscribe" id="subscribe">{{ 'general.newsletter_form.submit' | t }}</button>
</span>
Step 4: Pls insert this code to your file css:
.input-group {
position: relative;
}
.hidden-label {
overflow: initial !important;
clip: unset !important;
}
.input-group:has(input:placeholder-shown) > label
{
top: 24%;
left: 1.5%;
margin-bottom: 0;
transition: all .2s cubic-bezier(.5,0,0,1);
}
.input-group input::placeholder {
color: transparent !important;
}
.input-group:has(input:focus) > label,
.input-group:has(input:not(:placeholder-shown)) > label
{
top: 2%;
left: 0.5%;
transform: scale(0.8) !important;
}
.input-group input {
padding-top: 16px !important;
}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @flammagreg, I've edited the style a bit. This is the new code
.input-group {
position: relative;
}
.hidden-label {
overflow: initial !important;
clip: unset !important;
}
.input-group:has(input:placeholder-shown) > label
{
top: 24%;
left: 0%;
margin-bottom: 0;
transition: all .8s cubic-bezier(.5,0,0,1);
color: gray !important;
}
.input-group input::placeholder {
color: transparent !important;
}
.input-group:has(input:focus) > label,
.input-group:has(input[type="email"]:not(:placeholder-shown)) > label
{
top: -8%;
left: 0%;
color: #ffff !important;
transform: scale(0.8);
}
.input-group input {
padding-top: 16px !important;
}
.footer-email-input, .newsletter-footer input.footer-email-input {
background: transparent !important;
}
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @flammagreg, Pls try with this code css:
.input-group {
position: relative;
}
.hidden-label {
overflow: initial !important;
clip: unset !important;
}
.input-group:has(input:placeholder-shown) > label
{
top: 0;
left: 0;
transform: translateY(10px);
margin-bottom: 0;
transition: all .8s cubic-bezier(.5,0,0,1);
color: gray !important;
}
.input-group input::placeholder {
color: transparent !important;
}
.input-group:has(input:focus) > label,
.input-group:has(input[type="email"]:not(:placeholder-shown)) > label
{
transform: translateY(1px) scale(.6428571429);
color: #ffff !important;
}
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
That has to be done on your backend. It will basically listen to an action by a user (in this case a click event), and then we use that to make the font-size of the "Email" title lower. Let me know if you need help on that.
I need help
Please DM me your access code and url of the store in order for me to help you out.
This is an accepted solution.
Hi @flammagreg,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file footer-main.liquid
Step 3: Find "newsletter-footer_form" and inside "input-group" replace to this code:
<label for="Email" class="hidden-label">Email</label>
<input type="email" value="{% if customer %}{{ customer.email }}{% endif %}" placeholder="{{ 'general.newsletter_form.newsletter_email' | t }}" name="contact[email]" id="Email" class="input-group-field footer-email-input" aria-label="{{ 'general.newsletter_form.newsletter_email' | t }}">
<input type="hidden" name="contact[tags]" value="newsletter">
<span>
<button type="submit" class="btn footer-email-submit" name="subscribe" id="subscribe">{{ 'general.newsletter_form.submit' | t }}</button>
</span>
Step 4: Pls insert this code to your file css:
.input-group {
position: relative;
}
.hidden-label {
overflow: initial !important;
clip: unset !important;
}
.input-group:has(input:placeholder-shown) > label
{
top: 24%;
left: 1.5%;
margin-bottom: 0;
transition: all .2s cubic-bezier(.5,0,0,1);
}
.input-group input::placeholder {
color: transparent !important;
}
.input-group:has(input:focus) > label,
.input-group:has(input:not(:placeholder-shown)) > label
{
top: 2%;
left: 0.5%;
transform: scale(0.8) !important;
}
.input-group input {
padding-top: 16px !important;
}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Could you try to make it more like the gucci website? "Email" starts as the same color as the underline, then turns to white as the underline turns to white. Also, the edge of the "E" doesn't move, the word just moves up and gets smaller.
This is an accepted solution.
Hi @flammagreg, I've edited the style a bit. This is the new code
.input-group {
position: relative;
}
.hidden-label {
overflow: initial !important;
clip: unset !important;
}
.input-group:has(input:placeholder-shown) > label
{
top: 24%;
left: 0%;
margin-bottom: 0;
transition: all .8s cubic-bezier(.5,0,0,1);
color: gray !important;
}
.input-group input::placeholder {
color: transparent !important;
}
.input-group:has(input:focus) > label,
.input-group:has(input[type="email"]:not(:placeholder-shown)) > label
{
top: -8%;
left: 0%;
color: #ffff !important;
transform: scale(0.8);
}
.input-group input {
padding-top: 16px !important;
}
.footer-email-input, .newsletter-footer input.footer-email-input {
background: transparent !important;
}
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Looks great! Last thing, could you make "Email" not look like it's bouncing around and make "Email" go to a smaller text and don't move it so high? Video of bouncing: It looks like it readjusts at the last second.
This is an accepted solution.
Hi @flammagreg, Pls try with this code css:
.input-group {
position: relative;
}
.hidden-label {
overflow: initial !important;
clip: unset !important;
}
.input-group:has(input:placeholder-shown) > label
{
top: 0;
left: 0;
transform: translateY(10px);
margin-bottom: 0;
transition: all .8s cubic-bezier(.5,0,0,1);
color: gray !important;
}
.input-group input::placeholder {
color: transparent !important;
}
.input-group:has(input:focus) > label,
.input-group:has(input[type="email"]:not(:placeholder-shown)) > label
{
transform: translateY(1px) scale(.6428571429);
color: #ffff !important;
}
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024