Circular Menu attached to Floating Action Button

Looking to design a Floating Action button that displays a circular menuhttps://i.sstatic.net/D3JOU.jpg

Do you think it's achievable using solely css?

Answer №1

If you want to change the icons, make sure to select from the icons available on the font-awesome page and replace the class name with the respective icon.

.main{
color:#222;
  z-index:1000;
  position:absolute;
  width:45px;
  height:45px;
  bottom:50px;
  float:right;
  right:200px;
  display: table-cell;
  vertical-align: middle;
  background-color:#00affd;
  text-align: center;
  box-shadow:1px 2px 10px #555;
  border-radius:100%;
  color:#fff;
  transition: all 0.5s cubic-bezier(0.680, -0.550, 0.265, 1.550); 
  cursor:pointer;
}
.main{
line-height:45px !important;
}
.main:focus > .cir {
  opacity:1;
  width:100px;
  height:100px;
   transform-style: preserve-3d;
}
p{
opacity:0;
position: relative;
    float: right;
    left: -58px;
    /* width: 50px; */
    line-height: normal;
    top: -60px;
    padding: 2px 10px;
    height: 20px;
    border-radius: 3px;
    background: #9E9E9E;
      box-shadow:1px 2px 10px #555;
}
.main:hover > p{
opacity:1;
}
.cir{
  z-index:2;
  opacity:0;
  position:absolute;
 right:50%;
 bottom:50%;
  width:10px;
  height:10px;
border-radius:100%;
transition: all 0.5s cubic-bezier(0.680, -0.550, 0.265, 1.550); 
}
*{outline:none;}
<link href="http://fontawesome.io/assets/font-awesome/css/font-awesome.css" rel="stylesheet"/>
<div  class="main" tabindex="1">X
  <div class="cir">
  <a class="main fa fa-user-circle " style="left:80%;bottom:90%;"><p>contact</p></a>
  <a class="main fa fa-whatsapp" style="left:30%;bottom:55%;"><p>WhatsApp</p></a>
  <a class="main fa fa-twitter-square" style="left:5%;bottom:10%;"><p>Twitter</p></a>
  <a  class="main fa fa-google-plus"  style="left:-15%;bottom:-40%;"><p>Google</p></a>

  </div>
</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

Notify of an Invalid CSRF Token within the Action Buttons Present in the Table

I've encountered a problem with the CSRF token when using a Handlebars each loop. I created a data table using the each loop but I'm unable to submit the delete button. The CSRF token only seems to work for submitting new data (POST) and updating ...

Quantifying the passage of time for data entry

Looking to create a quiz form where I can track how long it takes users to input/select answers. I attempted the following code but the timing seems off: $('input, select').on('focus', function(event) { el = $(this); name ...

One CSS file linked, but only one is applied; the other is left unused

After including two CSS files, I am experiencing an issue where only one of them is being utilized. The other file does not seem to be included and the reason behind this remains unknown. My website has a standard header file that is present on all pages. ...

How can we display data from the database in a table if the data is stored as a string separated by commas using Ajax?

I am having trouble displaying 33 and 123 of heading 1 and heading 2 in a new row. Can someone please help me with this issue? Even though I updated the code, the for loop is only showing the last value. $.ajax({ type:"POST", url:"{{route(&ap ...

Why isn't my CSS button changing color on hover?

div ul li a.button:hover { text-color:#FF0000; background: #0040FF; } I have been attempting to create buttons that change color and text when hovered over. Despite trying different methods, the changes do not seem to be taking effect. Below is the co ...

Guide on plotting latitude and longitude coordinates on Google Maps with Vue.js through JSON data fetched via AJAX

I have implemented a Vue.js script to fetch JSON data through an AJAX request. However, I am encountering issues with the code. <script> new Vue({ el: '#feed' , data: { details: [], }, mounted() { this.$nextTick(fu ...

Are background images covering hidden text detrimental to accessibility?

Is there a way to display images of text instead of actual text for my menu? I have implemented spans within each menu link. These spans have specific dimensions, block display properties, the text is indented to be hidden, and the background image is set ...

Modifying icon color upon button click in Vue 3: A quick guide

I'm currently implementing Vue 3 into my project. Within the database, there are a total of 10 individuals, each of which should have their own card displayed. Users have the ability to add any person to their list of favorites. Below is the code snip ...

Obtaining the Final Document Identifier for Paginating with valueChanges()

When using valueChanges() in AngularFire to subscribe to Firestore data, I encountered an issue where obtaining the last document reference for pagination was not as straightforward as when using onSnapshot. Unfortunately, the approach I was using with o ...

What is causing me to have difficulty importing any of the images located in the public folder?

I'm currently tackling the NextJS framework, and I'm having trouble importing images that are stored in the public folder. Despite being able to navigate through folders, the images aren't displaying as expected. Here is the import line and ...

Adding a dynamic object to the secondary column header of an output table: A step-by-step guide

Working on a transition table module, my main challenge is presenting the output in a user-friendly manner. In the past, I used Excel for this task, where making the table readable was simple but extracting data from millions of rows took hours. Now with R ...

Error message: jQuery is not recognized after implementing Bootstrap Template

I've been working on an MVC project and decided to integrate a Bootstrap theme called Argon. I included all the necessary Argon CSS and JavaScript files in Bundle.Config and successfully integrated them, allowing me to make use of Argon HTML elements. ...

Creating an outlined effect on a transparent image in a canvas: step-by-step guide

Currently, I am working on creating transparent images using canvas in HTML5 and I would like to incorporate borders into them. The issue I'm facing is that the "Stroke" property does not consider the transparency of the image and applies it as if it ...

Div with CSS shadow on all sides

Is there a way to achieve this effect using only CSS (not CSS3) so that it is supported by all browsers? https://i.sstatic.net/XcWEh.png I am looking to create a div with shadows on all sides, where the top area will be used for navigation. I have tried s ...

Execute a jQuery function on each element of a foreach loop

I currently have a setup where each user has their own table containing items, with input fields for adding new items. When the "Add" button is clicked, the new item gets sent to the database and displayed in the table. This setup works flawlessly for a si ...

Merge two JavaScript functions

I've been attempting to merge two if functions together but I keep encountering errors. Despite trying different methods, I have not been successful in combining them. My goal is to check if the body has a specific class and if it does, I want to unc ...

Error: The node is unable to parse JSON data through the API

After loading a JSON file as a string, attempting to parse it back to JSON and send it as a response: router.get('/todos', (req,res) =>{ let todos = fs.readFile('todos.json', 'utf8',(err, data) =>{ if (err) ...

Refine the Vuex state with a filter

Currently, I've progressed in my Vue development journey and started exploring the implementation of Vuex for state management. In the past, I had a main Vue component that handled search functionality, an array of items to iterate over, and the iter ...

Interactive carousel featuring responsive image zoom effect on hover

Utilizing the flickity carousel, I have crafted an example which can be found at this link to codepen.io. Here is the CSS code that has been implemented: CSS .image-hoover { overflow: hidden; } .image-hoover img { -moz-transform: scale(1.02); -web ...

What steps should I take to address these styling challenges?

Recently, I came across some code that uses the hspace attribute which is now considered outdated. In order to create space between elements in a widget, I am looking for a solution that involves adding 10px of space above and between the items using CSS. ...