Skip to main content

Gemini treanding prompt photo boys

How to animated youtube logo on blogger website

How to Add a Floating YouTube Logo with Smooth Animation in Blogger

How to Add a Floating YouTube Logo with Smooth Animation in Blogger

Adding a floating YouTube logo with smooth animations is an excellent way to direct visitors to your YouTube channel and increase subscribers. In this comprehensive guide, we’ll walk you through the steps of integrating a floating YouTube logo into your Blogger template. You’ll learn how to customize it for your channel and add some smooth animation effects.

A floating YouTube logo is an eye-catching element that encourages visitors to click and subscribe to your YouTube channel. By adding it to your website or blog, you make it easier for your audience to discover your channel, boosting engagement and subscriber count.

2. Original Floating YouTube Logo Code

This is the initial version of the floating YouTube logo code. It includes basic styling and positioning. Copy the code below and add it above the closing </body> tag in your Blogger template:

<style>
#floating-youtube-logo {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}
#floating-youtube-logo img {
    width: 50px;
    height: 50px;
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
#floating-youtube-logo:hover img {
    transform: scale(1.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
@media (max-width: 768px) {
    #floating-youtube-logo {
        left: 10px;
        bottom: 50px;
    }
    #floating-youtube-logo img {
        width: 40px;
        height: 40px;
    }
}
</style>

<div id="floating-youtube-logo">
    <a href="https://www.youtube.com/@gettechnical" target="_blank" title="Subscribe to our YouTube Channel">
        <img alt="YouTube Subscribe Logo" src="https://upload.wikimedia.org/wikipedia/commons/4/42/YouTube_icon_%282013-2017%29.png" />
    </a>
</div>

<script>
window.onload = function() {
    var homepageURL = 'https://gettechnicalsolution.blogspot.com/';
    if (window.location.href === homepageURL) {
        document.getElementById('floating-youtube-logo').style.display = 'block';
    } else {
        document.getElementById('floating-youtube-logo').style.display = 'none';
    }
};
</script>
        

3. Modified Floating YouTube Logo Code

This is the updated version of the code with a more rectangular logo and smooth animation effects. Copy the code below, replace your existing code, and make sure to change the YouTube URL to your channel's link:

<style>
#floating-youtube-logo {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}
#floating-youtube-logo img {
    width: 50px;
    height: 30px;
    border-radius: 10px;
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
#floating-youtube-logo:hover img {
    transform: scale(1.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
@media (max-width: 768px) {
    #floating-youtube-logo {
        left: 10px;
        bottom: 50px;
        display: block;
    }
    #floating-youtube-logo img {
        width: 45px;
        height: 25px;
        border-radius: 8px;
    }
}
</style>

<div id="floating-youtube-logo">
    <a href="https://www.youtube.com/@gettechnical" target="_blank" title="Subscribe to our YouTube Channel">
        <img alt="YouTube Subscribe Logo" src="https://upload.wikimedia.org/wikipedia/commons/4/42/YouTube_icon_%282013-2017%29.png" />
    </a>
</div>

<script>
document.addEventListener('DOMContentLoaded', function() {
    var homepageURL = 'https://gettechnicalsolution.blogspot.com/';
    if (window.location.href === homepageURL) {
        document.getElementById('floating-youtube-logo').style.display = 'block';
    } else {
        document.getElementById('floating-youtube-logo
        ').style.display = 'none';
    }
    setTimeout(function() {
        var logo = document.getElementById('floating-youtube-logo');
        if (logo.style.display === '' || logo.style.display === 'none') {
            logo.style.display = 'block';
        }
    }, 500);
});
</script>
        

4. Step-by-Step Guide to Implement the Code

Follow these steps to add the floating YouTube logo to your Blogger template:

  1. Log in to Your Blogger Account: Visit Blogger and log in with your credentials.
  2. Navigate to Your Blog's Dashboard: Select the blog where you want to add the floating YouTube logo.
  3. Go to Theme Settings: In the left sidebar, click on Theme and then on the Customize button.
  4. Access HTML Editor: In the customization menu, look for and click on the Edit HTML option.
  5. Insert the Code: Scroll down to the bottom of the HTML code and paste either the original or modified code (provided above) **above** the closing </body> tag.
  6. Save and Preview: Click on Save in the top-right corner, and then click on Preview to see how the YouTube logo appears on your blog.

By following these steps, you’ll successfully add a floating YouTube logo to your Blogger template. Make sure to customize the logo’s URL to match your own YouTube channel link.

5. Customization Tips

Below are some tips to customize the floating YouTube logo code for better visual appeal and functionality:

  • Change the Logo URL: Update the href attribute in the code to your own YouTube channel link. For example, replace https://www.youtube.com/@gettechnical with your channel's URL.
  • Adjust the Logo Size: Modify the width and height properties within the <img> tag to change the size of the YouTube logo.
  • Change the Logo’s Shape: Modify the border-radius value to adjust the curvature of the logo’s edges.
  • Customize the Hover Effect: Update the box-shadow and transform properties inside the #floating-youtube-logo:hover img selector to change the hover effect.
  • Update the Display Logic: Use JavaScript to control when the logo appears based on specific page URLs or user interactions.

That's it! You’ve now learned how to add a floating, animated YouTube logo to your Blogger template. Feel free to customize the design and behavior to match your blog’s theme and style.

Comments

Popular posts from this blog

How to use never install on smartphone free

How to Use Neverinstall Website on Smartphone Neverinstall is a website that allows you to run desktop applications on your browser. While it was not originally designed for smartphones, you can still use it by enabling the desktop site option on your browser. Never install on Android  Here are the steps on how to use Neverinstall on your smartphone: Go to the Neverinstall website on your smartphone's browser. Tap the Menu button (three dots) and select Desktop Site . Create an account or sign in if you already have one. Tap the Spaces tab. Tap the Create Space button. Give your space a name and select the applications that you want to install. Tap the Create button. Your space will be created and you will be able to start using the applications. Keyboard Issues on never install website  One issue you may encounter when using Neverinstall on your smartphone is the keyboard. The mobile keyboard will not work on the website, so you will need to use a physic...

What is AI Agent? The future of Automation

  What is AI Agent? The Future of Automation What is AI Agent? The Future of Automation In the world of Artificial Intelligence, the term "AI Agent" is gaining more attention than ever. With increasing automation, understanding AI agents is key to grasping the future of technology. What is an AI Agent? An AI Agent is a software entity that perceives its environment through sensors and acts upon that environment through actuators to achieve specific goals. In simpler terms, it’s like a digital brain that senses, thinks, and takes actions. Example: A self-driving car is an AI agent—it takes input from cameras, makes decisions, and drives the car accordingly. Types of AI Agents Simple Reflex Agents: React only to current percepts. Model-Based Agents: Maintain internal states to make decisions. Goal-Based Agents: Act to achieve specific goals. Utility-Based Agents: Aim to maximize happiness or...

Upcoming future of ios ! iOS 19

iOS 19: The Future of iPhone – Features, Pros & Cons iOS 19: The Future of iPhone – Features, Pros & Cons Apple is set to unveil iOS 19 at the upcoming WWDC 2025 on June 9. This update promises a significant overhaul in design and functionality, introducing advanced AI features, a refreshed user interface, and enhanced cross-device integration. Release Timeline: Preview on June 9, 2025 | Public Beta in July | Official Release in September Key Features of iOS 19 VisionOS-Inspired Design: Translucent menus, floating navigation bars, and dynamic app icons for a modern look. Smarter Siri: Enhanced context awareness, natural voice interactions, and integration with third-party AI models like Gemini and ChatGPT. AI-Powered Battery Optimization: Personalized battery management based on user habits to extend device longevity. Revamped Health App: AI-driven health coaching, food tracking, and advanced fitness tools. C...