Merge together two fragmented logo images

I'm looking to design a web page featuring an animation that includes a 3D model logo with two parts - one on the right and the other on the left. Between these two parts, there will be text that pops up when the 3D model splits upon hovering the mouse over it. Initially, the 3D model will appear as a single image, resembling the full logo. Can anyone assist me with this? Thanks!

Answer №1

.logoHalf {
  width: 300px;
  height: 200px;
  background-size: 200%; /* twice the width to only show half */
  background-position: center;
  display: inline-block;
}

#left {
  background-image: url('https://image.shutterstock.com/image-vector/example-red-square-grunge-stamp-600w-327662909.jpg');
  background-position: left center; /* this one from the left */
}

#right {
  background-image: url('https://previews.123rf.com/images/vasilyrosca/vasilyrosca1912/vasilyrosca191200495/137253397-beispiel-f%C3%BCr-ein-vektorstempelsymbol-beispiel-wasserzeichen-stempel-.jpg');
  background-position: right center; /* this one from the right */
}
<div id="left" class="logoHalf"></div>
<div id="right" class="logoHalf"></div>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Listen for incoming data from the client in the form of an ArrayBuffer

I have been utilizing the ws library within nodejs to develop a small cursor lobby where players can interact. I have managed to utilize the server to send ArrayBuffers with bit streams to the client and successfully decode them. However, I am encountering ...

Is there a way to customize the appearance of the select dropdown without impacting the styling of other Material-UI components, such as the show/hide columns panel?

I am currently working on customizing the appearance of the dropdown panel for my MUI select component. My goal is to achieve a design similar to this: Desired show/hide columns example To accomplish this, I have implemented specific styles within the Mui ...

css, align top menu

Is it possible to achieve this using only CSS? Please take a look at my example here. Currently, when I hover over the menu, the submenu appears next to it. I would like to align all submenus' tops with the top of the second level menu. ---------- ...

Avoid calling the fadeOut method on a jQuery UI Dialog more than once to prevent unexpected

I'm encountering a peculiar issue with jQuery. I have a div that displays messages for ajax actions, and I want the message to disappear after 5 seconds. It works as expected the first time, but if I trigger the action again on the same page, the dial ...

Adjusting the background color of a selected date in Fullcalendar using React and Typescript

I have been using Fullcalendar and I am currently working on changing the color of a selected date. My approach to achieve this is as follows: Set the selected date state. Pass it as props to the events object of fullcalendar. Change the color of the sel ...

Communication between related components in Angular involving siblings

I am currently working in Angular 4 with sibling components, where there are no parent-child relationships, only siblings. One of the siblings is able to successfully retrieve data, particularly the ID from the URL using the code snippet below: public ge ...

Utilizing Selenium WebDriver in combination with applet applications

Our web application utilizes an applet provided by a third party to validate users in their database. Once a user logs in, the system displays a text box within the applet for them to enter a key code sent to their mobile or email. The key code constantly ...

I am sometimes experiencing issues with activating ajax code using Bootstrap 3 modal

I'm stumped trying to find a solution for this issue. Currently, I am utilizing the bootstrap modal to retrieve ajax content from a specified URL. To prevent content overlap, I am using $.removeData() when reloading the content. The problem arises w ...

Vanishing HTML upon initial entry to the site using Gatsby and Material UI exclusively in live deployment

I run a blog using Gatsby that includes Material UI components to fetch markdown files through GraphQL. During development, everything operates smoothly. However, in production (after running gatsby build && gatsby serve), the HTML doesn't di ...

Make sure PTable maintains a horizontal layout on any device with PrimeNG

When I view my Ptable on desktop or iPad, it looks like this: https://i.stack.imgur.com/ONqZV.png However, when I switch to a device like an iPhone X, it changes to this layout: https://i.stack.imgur.com/H2q7j.png I want the horizontal layout to displa ...

leveraging ajax to retrieve data from php and refresh the webpage

After spending countless hours on this issue and scouring numerous StackOverflow posts, I am still unable to find a solution. The webpage I am working on consists of two sections, each section is displayed based on the int value stored in the database. M ...

What is the best way to overlay a fixed-position element on top of a relative positioned element?

Can it be done? I set the position of the header on my site to "fixed". Then I also positioned an image as "relative". But whenever I scroll the site.... I noticed that the image was placed above the header. Even the twitter profile widget I added ended up ...

Using Rails 4 to render a partial asynchronously utilizing AJAX, jQuery, the `:remote => true` option, and respond_to functionality

It appears that generating a dynamic page through AJAX in response to a submitted form is quite common. None of the other similar inquiries seem to focus on this process in a broad context. The most informative blog post I came across regarding this topic ...

Obtain the parameter of a parent function that runs asynchronously

Here's the code snippet I'm working with: function modify( event, document ) { console.log( "document name", document ); //I need it to be 'file', not 'document'. documents.clients( document, function( clientOfDocument ...

Unable to successfully retrieve form using jQuery

I'm encountering an issue with JQuery 3.2.1 while trying to retrieve input forms. Despite my efforts, I am unable to retrieve any data - it either returns an empty object or an empty string. I have tried using serialize, serialize array, as well as co ...

Why isn't the right-clear property functioning correctly?

My understanding of `clear: left`, `clear: right`, and `clear: both` in CSS has always been a bit fuzzy. I know that `clear: both` means it prevents floating elements from appearing on both sides, but I recently did some testing here. I expected the layout ...

The placement of my image shifts when I switch to the mobile view

Having a small issue with my image alignment. When I switch from portrait to landscape view, the image is no longer centered. The margin remains the same as in portrait view and I'm unsure how to adjust it. I've attempted changing the margins of ...

How to properly display date format in Node.js when using EJS templates with MySQL

When retrieving dates from the database, I am looking to break them down into two separate numbers. 7:00-8:00 //array[0]=7:00 and array[1]=8:00 9:00-9:30 14:30-15:00 Below is my code, but it is returning NaN NaN: <% time_slots.forEach((timeslot ...

What are the possibilities of utilizing a variable that is stated within composition to enable dynamic rendering?

I'm working on a Vue.js v3 project using the composition API. I have defined a variable in my setup like this: setup() { const showInvoiceItemForm = true; return { showInvoiceItemForm }; }, Now, I want to show a form when a button is click ...

dividing the texts of link buttons with commas

I have a scenario where I am storing the names of a series of link buttons with common classes in an array. However, when I print the value of the array in a span, all the link buttons with the same class are being stored as a single entry in the array and ...