Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

359
Visualizações
Expandable cards for Angular

I am adding a functionality to existing project in Angular. I have some Bulma cards which are showing certain information. I would like to have a following option: when none of the cards are clicked, they will show just short version of data which they get from API. If I click on one of the cards, I would like that card to expand horizontally and vertically, so it would become wider and taller, and show full information from API. My problem is, I don't know where to start from. I see mention of Ionic, Angular Material, custom Bulma library like this one https://bulma-collapsible.netlify.app/installation/ . I would like to use the simplest solution. If anyone can point me in the right direction I would be extremely grateful. Tutorial, manual, anything, since I'm not sure which tool I need for this.

EDIT So the top left card should expand into the red rectangle, and other cards should be shifted under this big expanded card. It would also be beneficial if only one card at the time can be expanded. So If first one is expanded and I click on the second one, first one would collapse and second one would expand.

enter image description here

<section class="section">
  <div class="container">
    <div class="columns is-multiline" *ngIf="dummyCampaigns">
      <div class="column is-4" *ngFor="let campaign of dummyCampaigns">
        <div class="card">
          <div class="card-image">
            <figure class="image is-4by3">
              <img src="https://bulma.io/images/placeholders/1280x960.png" alt="Placeholder image">
            </figure>
          </div>
          <div class="card-content">
            <div class="media">
              <div class="media-content">
                <p class="title is-4">{{ campaign.title }}</p>
                <p class="subtitle is-6">{{ campaign.owner }}</p>
              </div>
            </div>
            <div class="content">
              {{ campaign.campaignDetails }}
              <br>
              <time datetime="2016-1-1">11:09 PM - 1 Jan 2016</time>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I have a simple solution for your scenario for expanding cards horizontally and vertically by using the basic css Animatable CSS properties .For example transition property. Here is link for more details, https://developer.mozilla.org/en-US/docs/Web/CSS/transition

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda