Skip to content

Commit

Permalink
added transition when changing between datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
Lugiasc committed Jun 4, 2023
1 parent 48285f9 commit 220a236
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions website/js/treemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ editorsChoiceCategories.forEach(function(category) {
})

function updateTreemapOnSliderChange() {
d3.select("#specific-app-info")
.transition()
.duration(500)
.style("opacity", "0")

var sliderValueTreemap = parseInt(sliderTreemap.node().value)

switch (sliderValueTreemap) {
Expand Down Expand Up @@ -407,4 +412,5 @@ function setSpecifiedAppHtml(appData, dataType) {
}
d3.select("#specific-app-info")
.html(specificAppHtml)
.transition().duration(500).style("opacity", 1)
}

0 comments on commit 220a236

Please sign in to comment.