Answer the question
In order to leave comments, you need to log in
How to smoothly change the width and height of a block?
There is such a structure
<div class="container-fluid">
@foreach($sptips as $key => $sptip)
<div class="container-fluid">
<div class="sptip">{{$sptip}}</div>
<div class="row">
@foreach($rows as $row)
@if($key == $row['sptip'])
<div class="card shadow rounded" data-parent="{{$row['id']}}" data-showed="false">
<div class="card-header">
<div>{{$row['shortname']}}</div>
<div class="children" title="Раскрыть\Скрыть" data-downloaded="false">
@if($row['amount_children'] > 0)
<i class="fa fa-chevron-down" aria-hidden="true"></i>
@endif
</div>
</div>
<div class="card-body">
<div class="card-title">{{$row['name']}}</div>
<div class="card-text"></div>
</div>
</div>
@endif
@endforeach
</div>
</div>
@endforeach
</div>
.card {
width: 140px;
height: 100%;
margin: .25rem;
border: none;
transition: 1s;
}
.card-text {
height: 0;
overflow: hidden;
transition: 1s;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question